session problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alex3oo2
Forum Newbie
Posts: 1
Joined: Thu Jul 06, 2006 11:17 pm

session problem

Post by alex3oo2 »

i have two different sites in two different folders on the same domain that both use the same session variables...

so when i go from one folder to another to go to a different site the session stays...
so my question is how do i keep the session only in one folder
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

call session_set_cookie_params() setting the path argument for your respective folders.
Post Reply