Home » Questions » Computers [ Ask a new question ]

How can I select to keep data from a chosen site when I clear Private data

How can I select to keep data from a chosen site when I clear Private data

Everytime I Clear Private Data (Tools Property) in FireFox; websites keep logging me out.

Asked by: Guest | Views: 302
Total answers/comments: 1
bert [Entry]

"Here's a short explanation:

HTTP - the communications protocol used for the World Wide Web is stateless. That means that you make a request, and get a response, and your next request knows nothing about your previous request. To overcome this limitation, most web applications use ""cookies"". Cookies are small pieces of data that the server (stackoverflow.com) tells the web browser (Internet Explorer or Firefox) to remember. As long as the cookie exists and is valid (cookies have a timeout), the browser is obligated to send the cookie with any request to the server.

So, the web server sends your browser a cookie with which to track your session, and your browser sends that cookie to the server with each request, identifying the request as part of your session.

When you clear private data (particularly, when you clear cookies) you delete the session cookie. The next time you connect to the server, your browser has no session information to send, and the server assumes you're in a new session. Since you haven't logged in to this new session, the server gives you an anonymous, non-logged in session, and provides you with a non-logged-in page. You then have to log in to get the new session.

So, if you don't want to lose your session, you either have to find some way to back up the Stack Overflow cookie (I don't know how you'd do this, off the top of my head), delete only the other cookies (again, I don't know how you'd do this one) or you have to not delete any cookies.

Or you can just accept that when you delete private data, you'll lose your session."