vikaspa Posted May 2, 2009 Share Posted May 2, 2009 I had a problem for intialisation of session variable ... the problem described was as follow "Suppose I book an order at rainola.com and confirm it. I then go to some other website. After that I revisit rainola.com and click on “send order” button on top horizontal bar. I can see details of my previous order in order table." Please suggest me solution for this Link to comment https://forums.phpfreaks.com/topic/156511-initialise-session-variable-when-user-leaves-the-web-site/ Share on other sites More sharing options...
Yeodan Posted May 2, 2009 Share Posted May 2, 2009 kill your session when the user presses the order button? or if you want a session to be destroyed if a user leaves your site, just create a new session every time they open the first page I'm just a newbie though, might be bad advice =) Link to comment https://forums.phpfreaks.com/topic/156511-initialise-session-variable-when-user-leaves-the-web-site/#findComment-824143 Share on other sites More sharing options...
the182guy Posted May 2, 2009 Share Posted May 2, 2009 session_destroy() will kill the session completely. unset($_SESSION['some_variable']) will just remove a specific variable. Link to comment https://forums.phpfreaks.com/topic/156511-initialise-session-variable-when-user-leaves-the-web-site/#findComment-824151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.