Cookies are scoped according to a domain name and path, so if you're using
two different host names, you're going to get two different cookies.

I would fix this on the level of your web server as it's got nothing to do
with Rails really.  This page on the Apache wiki will give you an idea of
what you need to do, but the solution will depend on which HTTP server you
use.

http://wiki.apache.org/httpd/CanonicalHostNames

On Wed, Jun 1, 2011 at 12:42 PM, tashfeen.ekram <[email protected]>wrote:

> i noticed if you access my site with xxx.com versus www.xxx.com
> separate user sessions are created such that same visitor form the
> same browser can log in twice. I am not sure if this perhaps is a DNS
> issue or this can be dealt at the level of rails app.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to