简体   繁体   English

浏览器如何删除 session 或删除历史记录?

[英]How browser delete session or delete history works?

Let a user using Mozilla browser, On three tabs he login to his yahoo account,gmail and hotmail.让用户使用 Mozilla 浏览器,在三个选项卡上登录他的 yahoo 帐户 gmail 和 hotmail。 Now if we Clear Recent History, all three session will be cleared.现在,如果我们清除近期历史记录,所有三个 session 都将被清除。

But at the same time if there is another session in any another browser it will not be cleared.但同时如果在任何其他浏览器中存在另一个 session 则不会被清除。

So What i am trying to ask here is, the cookies and session related details,browser cache will be in the local computer and it will be cleared on clearing history.所以我想在这里问的是,cookies 和 session 相关细节,浏览器缓存将在本地计算机中,它将在清除历史记录中被清除。

But is it browser specific?但它是特定于浏览器的吗? The cookie and all will have any browser specific id, how it will differentiate that now clear the IE history or clear chrome history. cookie 和所有内容都将具有任何特定于浏览器的 id,它将如何区分现在清除 IE 历史记录或清除 chrome 历史记录。

For the server to keep track of a client session a session id is sent to the client.为了让服务器跟踪客户端 session,将 session id 发送到客户端。 Which the client uses in each request to the server.客户端在对服务器的每个请求中使用的。

On the local computer each browser has it's own way of saving the cookie files.在本地计算机上,每个浏览器都有自己保存 cookie 文件的方式。 So when you clear the cookies in Firefox, then the cookies saved by Firefox will be deleted.所以当你清除Firefox中的cookies时,那么Z763F7F1AEC350CD5C22D保存的cookies就会被删除。 Same thing with Chrome, IE, Safari etc.与 Chrome、IE、Safari 等相同。

They could even be using a own way of serializing the cookies for all that I know.据我所知,他们甚至可以使用自己的方式序列化 cookies。

You can in fact use two different accounts on two different browsers at the same time.实际上,您可以同时在两个不同的浏览器上使用两个不同的帐户。 The browser history/cookies etc are specific to the browser in question.浏览器历史记录/cookies 等特定于相关浏览器。

There isn't a "standard" where browser save their settings, each do it as they file.浏览器没有保存设置的“标准”,每个都在文件中进行。 MSIE might use the Windows Registry while Firefox might use a local database file. MSIE 可能使用 Windows 注册表,而 Firefox 可能使用本地数据库文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM