Saturday 15 August 2015

javascript - Destroy all session -


I want to write a script to delete all sessions on the currently running browser. For example: If the script is executed to delete, if I am logging in to Facebook, Gmail, Yahoo or any other site, then the login session should be deleted. Thanking

Deleting a session is something that happens within the server, IOW "server side code" . When a session starts, a cookie is set in your browser. This cookie connects you to the session if you just want to "defeat" the session in your browser, then just delete the cookie, but there is nothing about this session on Facebook now. Despite this, once the cookie is destroyed in your browser, no one can access that session (unless there is a copy of that cookie).

No comments:

Post a Comment