开发者

How does web applications handle multiple browser window

I have a very basic knowledge of the web programming, and I couldn't figure out the answer to this question.

Typically, a cookie is used to identify a session in web applications. Ho开发者_如何学编程wever, as far as I know, multiple browser windows share cookies. In that case, how does web applications distinguish between the tabs?

Edit: I guess all the answers are saying the same thing - there is no standard way to handle this. Ok. Thanks for resolving my uncertainty guys.


However, as far as I know, multiple browser windows share cookies. In that case, how does web applications distinguish between the tabs?

It cannot distinguish at all. Hence comes the challenge for web developers - make their application robust to prevent data destruction or unauthorized operations when access is performed from some other "outdated" tab.


They don't. The application does not know that you have two tabs open. If you are tracking sessions then it can know that you have two sessions open.

What are you trying to accomplish?


They don't. You have one cookie per different browser (ff/ie/ google chrome).

You'll have to distinguish the tabs client-side (ie Javascript).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜