When I call a certain function, I need all the active sessions to be deleted. It is said in the ceremony that there is no need to destroy all the sessions immediately, but after exactly 30 seconds. Even if the user leaves the page, where the session was called before 30 seconds, then his browser should now be cleared in all sessions, when he returns to the site, none of those sessions will be active .
Is this possible? If so, what about writing such a function?
Edit
Why do I need this, I have a shopping cart script when the submitted users take PayPal to process the payment. If I delete all the sessions while clicking that session button, then I can not send all form data to PayPal. If I do not destroy all the sessions, then when the user comes back to the site, shopping cart is still packed with the ingredients he bought.
I need to empty the car when the user comes back I thought 30 seconds will give the user enough time to go to the PayPal page, through which my car script will already have PayPal with all the necessary information Has been sent. And then destroying all the sessions is safer without fear of interruption in service.
So I need a timer script which will work on the server side and destroy the session, even when the user no longer remains on that page.
see
Comments
Post a Comment