Re: two php scripts with same $_SESSION variables

From: Date: Thu, 24 May 2007 13:56:41 +0000
Subject: Re: two php scripts with same $_SESSION variables
Groups: php.general 
Request: Send a blank email to php-general+get-255529@lists.php.net to get a copy of this message
Stut wrote >What you're wanting to do can be achieved by setting the path on the >session cookies. You may be able to do this by calling ini_set to change >session.cookie_path before calling session_start. ini_set('session.cookie_path', '/A/'); session_start(); That's a good solution; it works fine. Thank you Mike wrote >To get this, just call session_name() with the appropriate value immediately before every >session_start(). session_name('SESSID_A'); session_start(); That's a good solution; it works fine. Thank you Are those two solutions equivalent or are there circumstances where one would be better than the other? Regards, JCR "who will never top post again" ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html

« previous php.general (#255529) next »