suppose one user logins to a web site and start navigating its pages. For a specific page, he copies page address and pastes it to a new IE window address bar.
现在,他的会话会发生什么?会重复吗?或者会发生什么?
suppose one user logins to a web site and start navigating its pages. For a specific page, he copies page address and pastes it to a new IE window address bar.
现在,他的会话会发生什么?会重复吗?或者会发生什么?
不,据我所知,SESSION cookie被发送到浏览器(整个应用程序,而不是窗口)。每个窗口引用由浏览器(IE)保存的相同cookie信息。
一个过度简化的例子:
把它作为数据库和文字。 该数据库拥有一套信息,许多文字可以阅读。 尽管每一处文字都能够做一些事情,但这些资料仍然存放在一个地方。
会话 cookie 是数据库,浏览器窗口是脚本。
我认为应该是这样的:
如果在第一个窗口中使用Ctrl-N打开“新窗口”,则“新窗口”中存在同一会话。
如果通过双击IE图标打开“新窗口”,第一个窗口的会话将不随之而来。
独立于浏览器,同一浏览器的新窗口或选项卡使用相同的会话。只有另一个进程才会有不同的会话。例如将地址复制到其他浏览器(如Firefox),您将获得一个新的会话。
在同一浏览器中打开一个新窗口从服务器的角度来看与重新加载当前窗口中的页面没有什么不同。会话是相同的,服务器仅对请求发出响应。但是,如果原始页面请求中有任何POST字段(例如,用户执行了某些操作),则这些字段不会随新请求一起发送。
会话是由服务器上的Web浏览器创建和销毁的。因此,每个浏览器的会话是唯一的。在使用同一浏览器(如果没有注销)时无需重新生成,而在从第一个浏览器使用不同浏览器时需要重新生成。因此,如果在关闭当前窗口之前将URL复制到同一浏览器中,则与之前的会话相同。但是,如果复制到不同的浏览器中,则会要求您再次登录。
然而,如果您已将会话设置为在窗口关闭时关闭,则关闭浏览器将关闭会话,但关闭选项卡不会关闭会话,因为服务器保持浏览器仍然在运行并保持会话活动。
What are the advantages/disadvantages of using include/require s to achieve a singular file that contains multiple pages as opposed to directing the user to many individual pages and storing the ...
I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...
What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...
I am storing an array of a custom serializable class in session on my site. When a page on the site changes, suddenly it renders them invalid, and tells me that it can t cast the type to it s own ...
I ve tried searching for this but it s pretty difficult to put into words. Basically, our site will run fine for most users without any issues. Sometimes though, those of us who use the site pretty ...
Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...
提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......
I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...