[Rails] Re: Sharing sessions between subdomains?
softwareengineer 99
softwareengineer99 at yahoo.com
Wed Feb 8 14:26:14 GMT 2006
Thanks for your reply.
I am setting the cookie to .home.com in my login function but when I go to blog.home.com, the session isn't being recognized.
Can anyone please guide me on where is the optimal place to set the cookie?
Thanks
Frank
sach <rubyforum at gaffle.com> wrote: softwareengineer 99 wrote:
> Hello,
>
> I know how to share sessions between subdomains in PHP. Can anyone
> please guide me as to how I can share sessions using Ruby? Where can I
> set the value of domain for which the cookie is set?
>
> I would like for a user to login on the home page and then go to
> blog.home.com and not have to login again.
>
> Any guidance/pointers are appreciated.
>
> Thanks'
> Frank
Isn't that just a matter of how you have your cookie set?
Instead of setting the domain of the cookie to 'blog.home.com' just set
it to '.home.com' and then that cookie should be valid for any host
under the 'home.com' domain.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/854d5145/attachment.html
More information about the Rails
mailing list