Forum Moderators: coopster

Message Too Old, No Replies

Cross Directory Sessions

         

martin_s

11:52 am on Jul 3, 2007 (gmt 0)

10+ Year Member



I have a website with a members area using sessions - but also want to include a separate news script for news updates and contain it in a separate folder - however the SESSIONS do not seem to work cross directory.

Anyone got any idea's on how to do this?

hughie

12:27 pm on Jul 3, 2007 (gmt 0)

10+ Year Member



They should do, are you sure you're calling session_start in your new area?

martin_s

2:24 pm on Jul 3, 2007 (gmt 0)

10+ Year Member



Yes, I am calling session_start in all the files in the new folder.

coopster

2:36 pm on Jul 3, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Double check the path you are using when you set the session cookie [php.net] (assuming you may be using cookies for session tracking).

And welcome to WebmasterWorld!

P.S. you likely aren't using setcookie() but look here instead:
[php.net...]