Page 1 of 1

session problem

Posted: Thu Mar 06, 2008 12:28 pm
by itsmani1
I am having a session problem.
I have 3 sub domains

beta.cmela.com
classifieds.cmela.com
community.cmela.com

I can login on beta.cmela.com but i am not to carry it on classifieds.com and community.cmela.com

Please help me

Re: session problem

Posted: Thu Mar 06, 2008 12:32 pm
by kryles
you can use parse_url() to check what domain they are coming from and if it isnt what they currently are on then use session_destroy();

It should empty out all session variables I believe.

If you have globals, use unset for them. And cookies have to be destroyed by setting them to a time in the past.

I can't give details because I just got that from google :mrgreen: