top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can I clear my session data from the browser?

+2 votes
374 views

Is there a way I can clear my session data from the browser? This is for debugging when I change something. Currently no matter what I do short of exiting the browser, my session data is always retained. This makes testing very cumbersome. I am using PHP/MySQL for development.

posted Feb 26, 2014 by Sanketi Garg

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Open a window in "anonymous navigation" in firefox is ctrl+shift+p in chrome is ctrl+shift+n in both cases when you close the window all the data is destroyed.

answer Feb 26, 2014 by Garima Jain
0 votes

The session data is actually stored on the server, the browser just sends a session id in the requests it makes to the server so that the server can access the right data.

You could clear the cookie (or URL parameter if you're using that method), that contains the session ID, from your browser.

Check the following link it may be helpful.
http://uk3.php.net/manual/en/function.session-destroy.php

answer Feb 26, 2014 by Deepak Dasgupta
...