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

  • SEARCH
  • Home
  • 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 7746705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:20:50+00:00 2026-06-01T10:20:50+00:00

I am using Devise to manage authentication in a Rails 3.1 application. It works

  • 0

I am using Devise to manage authentication in a Rails 3.1 application. It works just fine in my production server. But I just set up a new test server, and if I log in to the main site, accessing a subdomain is not recognizing the session. It’s asking me to log in again.

I can’t recall where I would troubleshoot this information. It seems as if it is some cookie setting.

I have domains pointed to each site, production and test. The production one ends in .net, the test version ends in .co.

Can anyone point me in the right direction?

  • 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-06-01T10:20:51+00:00Added an answer on June 1, 2026 at 10:20 am

    I think this is not a devise setting but a session and cookie setting.

    You can work on this by setting the variable YourApp::Application.config.session

    You can do this in your environment.rb file or your config/initializers/session_store.rb. Example for session_store.rb is

    YourApp::Application.config.session = {
     :session_domain => '.yourdomain.com',
     :session_key => '_yourapp',
     :expire_after => 14*24*3600,
     #:secure => true, #for secure/ssl sessions and such
     :secret      => 'somesecretgobledygook' 
    }
    

    Please note the session_domain setting it to .yourdomain.com makes your cookies work across subdomains.

    This applies to sessions. There are similiar settings for cookies.

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

Sidebar

Related Questions

I'm using devise in my rails 3.2 application. I have a users/new page where
I am using devise to manage user authentication in my rails app. Devise is
I'm Using Devise in my Rails 3.0.9 application for User Authentication. As I wanted
So I am using Devise for user authentication in my rails app. I have
I have created a simple API for a Rails application using token-based-authentication that supports
I'm trying to get some basic authentication/authorization with devise/cancan with Rails. Rather than using
I've set up Devise to manage the authentication to my app. I have a
I'm using Cancan, Devise, Rails 3 for my ordering application. Each user has many
I have a Winforms application which is working fine.. using a BackgroundWorkerThread to manage
I have an app that is using devise for authentication. Rails 3 on ruby

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.