Re: two php scripts with same $_SESSION variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux