Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
is there a way to get access to a cookie stored a root site in a session set at subdomain level
8 views
Skip to first unread message
Erwin
unread,
Nov 7, 2012, 12:46:31 PM
11/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
being at root level
http://mydomain.com
, I stored a cookie cookie[:login]
I can see the cookie in my browser
site:
mydomain.cm
login
_myapp_session
upon redirection, to url =>
http://test.mydomain.com
,
I would like to access this cookie, cookie[;login], but as I maintain sessions at subdomain level, I have
site:
test_domain.com
_myapp_session
how can I access the cookie[:login] ?
thanks for any clue ...
Erwin
unread,
Nov 7, 2012, 1:22:55 PM
11/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
I tried to use the :domain
cookies[:login] = { :value => 1, :domain =>"
test.mydomain.com
", :expires => 1.hour.from_now }
but no way cookies is not set for test
should I rather use ?
cookies[:login] = { :value => 1, :domain =>".
mydomain.com
", :expires => 1.hour.from_now }
Reply all
Reply to author
Forward
0 new messages