Setting session.name using ini_set
Posted: Sat Jan 07, 2006 12:26 am
All this time I was using the default PHPSESSID.
Still unclear with sessions.
In localhost/website1 I've set - ini_set("session.name" , "website1");
In localhost/website2 I've set - ini_set("session.name" , "website2");
When both are opened (in different tabs/windows)
session_name() should return website1 for website1 and website2 for website2 right ? Theres a session_name for each website - or setting it using ini_set sets it for entire localhost ?
Still unclear with sessions.
Code: Select all
localhost
|
|
---webiste1
|
|
---webiste2In localhost/website2 I've set - ini_set("session.name" , "website2");
When both are opened (in different tabs/windows)
session_name() should return website1 for website1 and website2 for website2 right ? Theres a session_name for each website - or setting it using ini_set sets it for entire localhost ?