Hi All,
If someone logs in my system I set up a few Session variables such as user type (admin, user, etc.) and a few other privileges and settings.
On one server I keep the production version and the test one.
My problem is if I open both versions in different tabs of the same browser both systems read/writhe data form the same $_SESSION variable. I don't want the real(production ) settings to be destroyed while testing.
My feeling is that I should use session_name() function, but I don't know how???
I've just put session_name before the session_start it does not help:(
session_name ('production');
session_start ();
Thanks!
If someone logs in my system I set up a few Session variables such as user type (admin, user, etc.) and a few other privileges and settings.
Code:
session_start (); $_SESSION['id'] = $row['user_id']; ... ...
My problem is if I open both versions in different tabs of the same browser both systems read/writhe data form the same $_SESSION variable. I don't want the real(production ) settings to be destroyed while testing.
My feeling is that I should use session_name() function, but I don't know how???
I've just put session_name before the session_start it does not help:(
session_name ('production');
session_start ();
Thanks!
Comment