I am having a hard time here.
When a user wants to login on to one of these sites, he will be
redirected to: https://site1.com.mainsite.com
Once he gives successfully his credentials, I want him to get redirected
I would like to use cookie session store.
The problem is that when he gets redirected, he still is an anonymous
user. This is because when he logs in at site1.com.mainsite.com, the
session gets set for site1.com.mainsite.com and not for www.site1.com
Do you know of a solution around that or is it impossible to solve?
I wanted to set session[:domain] but I get a request forgery error.