is it possible to stop php sessions carrying over from different folders -


i have file structure , use $_session['userid'] track logged in:

main index (a hub websites) | |--/_lm/index.html (website 2) | |--/_da/index.html (website 3) | |--/_vm/index.html (website 4) 

i have found once logs into, example, website 2 - $_session['userid'] carry on other websites.

what best way top happening? there way confine session data folder?

dont use $_session['userid'] validate every session. once set works across site.

so try this

website 1 session

$_session['userid1'] 

website 2 session

$_session['userid2'] 

website 3 session

$_session['userid3'] 

website 4 session

$_session['userid4'] 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -