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 8221861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:04:56+00:00 2026-06-07T14:04:56+00:00

I am setting the user to redirect to a subdomain based on a nested

  • 0

I am setting the user to redirect to a subdomain based on a nested form parameter after signup. However, when I do the redirect, the user is not logged in. I can go back in and manually log the user in, and I can verify the user is created, it just appears the session isn’t immediately created after registration.

Here’s the method I’m using to redirect the user (in registrations_controller.rb):

  def after_sign_up_path_for(resource_or_scope)
    root_url(subdomain: params[:user][:organizations_attributes]["0"][:subdomain])
  end

The routing to the subdomain works fine, btw.

I think this is a problem with sharing sessions across subdomain, as I am logged in when I remove the subdomain from the url and refresh.

I’ve tried add this this to my app/config/initializers/session_store.rb file:

Vocalem::Application.config.session_store :cookie_store, key: '_vocalem_session', :domain => :all
  • 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-07T14:04:58+00:00Added an answer on June 7, 2026 at 2:04 pm

    Turns out I just needed to reboot my server!

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

Sidebar

Related Questions

I understand that I can redirect a user on an exception by setting the
I'm setting up a group / user based security system. I have 4 tables
How can I use JavaScript on my site to redirect the user to a
I am trying to save a custom object as a user setting in a
I've got a setting in my theme options panel to allow the user to
I have contenteditable span with a max-width setting that allows the user to enter
I have a boolean setting in my Properties/Settings.settings file, which basically stores per user
I have a registration form that when the user enters in valid registration data
I am setting up a paid subscription service and want to keep the signup
Whenever a user visits Page A on my site, I immediately redirect him to

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.