Forum Moderators: coopster

Message Too Old, No Replies

Can't get sessions across subdomains

         

test1

11:26 pm on Feb 11, 2008 (gmt 0)

10+ Year Member



I've already done a lot of searching on this topic and I've tried all the suggested measures to get this working and it still doesn't seem to be working. I've set the cookie_domain to ".mydomain.com" and that didn't make any difference.

When a user logs in I set a session variables that tell who the user is and whether he is logged in or not but when I go to one of my subdomains the user disappears. I use mod-rewrite to create virtual subdomains for all my users and the problem also occurs when I use a "www" in front of the domain and when I don't.

Is there any other settings I need to enable on my server for this to work?

eelixduppy

9:34 pm on Feb 18, 2008 (gmt 0)



Not sure if I have any further answers for you. Your best approach is probably to start off more simple and then build your application up gradually to see what breaks the application. For instance, just get a session to move across the subdomain without mod_rewrite, etc.. then slowly add things to see what breaks it.

You'll find that there are also many threads around here that address issues of fixing across subdomains sessions.