I have a problem with the session_id(). When I call the session_destroy(), by going specifically to the logout page and then I go back to my start page the session_id is still the same. What to do?
But when I close the browser window the session_id is a new one, but what if a person not closes his/her browser window?
I have a problem with the session_id(). When I call the session_destroy(), by going
Share
session_destroy() destroys the session data on the server, not the session id in the cookie. Either use setcookie() to unset the cookie or use session_regenerate_id() to get a new ID.