Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6359955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:35:13+00:00 2026-05-24T23:35:13+00:00

I have a website built by someone else with ruby-on-rails, and I’m now building

  • 0

I have a website built by someone else with ruby-on-rails, and I’m now building a django application.

I need my users to sign in with my sign-in page built on django and surf my django pages (so far – easy to do) but I also need to add links on the sidebar to that RoR application (and from there they will be able to come back to my app).

The users shouldn’t know that they are “leaving” the django app – for them its one website – that RoR app looks and feels the same for them.

A. How can I do this?
B. They sign in with the django app so the sessions and all user stuff will be managed by django. How can I “pass” sessions to the RoR app? Should I use iframe??
C. How do the links in django to the RoR url look like?

Thank you guys!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:35:13+00:00Added an answer on May 24, 2026 at 11:35 pm

    The best practice here would be to look to how advertising networks share state across multiple properties. One commonly used method is a tracking pixel. For example, in your Django app, embed:

    <img src="http://myrailsapp/mysession_creator" />
    

    Make sure that your rails app responds at that address with a session. That will establish a session cookie on the rails domain.

    Now to layer on security, and it depends on what level of security you need. You could pass in information, like:

    <img src="http://myrailsapp/mysession_creator?user=myUserName" />
    

    Obviously not incredibly secure, but it depends on your app. A more secure method would be:

    <img src="http://myrailsapp/mysession_creator?t=<MD5HashTokenHere>" />
    

    Then the Rails app would have a mechanism of validating that token against the Django app server side (either through database state or a server side application call.) More work, but more secure.

    Another method, if your applications share a root domain, you can use a secure cookie on the root domain to pass information between applications. For example, https://django.myapp.com sets a myapp.com cookie, and https://rails.myapp.com knows to look for a “username” cookie. Requires a wildcard SSL cert on the root domain.

    Another option is to pass the token or login information with every link to the Rails app, and have a before_filter that recognizes the hand off and establishes the session in a similar way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website built in PHP 4 with a framework made by hand
I have a website built using Asp.net and LinqToSql for Data Access. In a
I have a website I've built in VS2005, C#, .NET 2.0. This website does
I've built myself some flash content for my website, but I need some divs
I have the website built in Ec2. I want to put all images in
Currently I'm tasked with doing the daily build. We have an ASP.NET 2005 website
I have a website that plays mp3s in a flash player. If a user
I have a website that I've just uploaded onto the Internet. When I browse
We have a website that uses #include file command to roll info into some
I have a website that is perfectely centered aligned. The CSS code works fine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.