Jump to content

sessions


dotkpay

Recommended Posts

Hello,

Is there a problem in destroying a session and then starting it in the same file, for example:

 

session_name();
session_start();

session_destroy();

 

 

And lastly, if I create a variable $_SESSION['user'] under a session called 'one' i.e. session_name("one") and then create another variable $_SESSION['user'] under a session called 'two' i.e. session_name("two").

Are these two variables the same?

Link to comment
https://forums.phpfreaks.com/topic/220814-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.