关闭浏览器后,会话状态不会结束 [英] Session State does not end after closing browser

查看:105
本文介绍了关闭浏览器后,会话状态不会结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


到目前为止,我的客户网站上有一台计算机存在问题。如果用户加载购物车然后关闭所有浏览器窗口,然后打开它们,返回到站点,购物车信息就在那里!购物车信息仅加载到会话变量中!网站上没有用于存储此信息的Cookie。我错误地认为当浏览器窗口关闭时会话状态丢失了吗?


我不知道它是什么浏览器,但这应该重要吗?


万分感谢!!


-

David Lozzi

网络应用/网络专家

德尔福技术解决方案公司

dlozzi(remove-this)@delphi-ts.com

Hello All,

I am having an issue with thus far one computer on my client''s web site. If the user loads the shopping cart and then closes all browser windows, then opens them back up, goes back to the site, the shopping cart information is there! The shopping cart info is only loaded into a session variable! There are no cookies on the site to store this information. Am I mistaken in believing when a browser window is closed that the session state is lost?

I don''t know what browser it is, but should that matter?

Thanks a million!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com

推荐答案

不一定。该会话实际上将消失。什么时候超时那个

说,如果他们关闭并重新打开它应该是一个新的会话,如果它不是那么

他们必须使用更多的东西然后JUST会话......


-

Curt Christianson

网站&脚本: http://www.Darkfalz.com

博客: http://blog.Darkfalz.com

" David Lozzi < dlozzi @(删除-此)delphi-ts.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

Hello All ,


到目前为止,我的客户网站上有一台计算机存在问题。如果

用户加载购物车然后关闭所有浏览器窗口,那么

打开它们,回到网站,购物车信息是

那里!购物车信息仅加载到会话变量中!

在网站上没有用于存储此信息的cookie。我错误地认为

相信当浏览器窗口关闭时会话状态丢失了吗?


我不知道它是什么浏览器,但是应该那么重要吗?


万分感谢!!


-

David Lozzi

网络应用程序/网络专家

德尔福技术解决方案公司

dlozzi(remove-this)@delphi-ts.com

Not necessarily. The session will actually "go away" when it times out. That
said, if they close and reopen it should be a new session, if its not then
they must be using something more then JUST sessions.....

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello All,

I am having an issue with thus far one computer on my client''s web site. If
the user loads the shopping cart and then closes all browser windows, then
opens them back up, goes back to the site, the shopping cart information is
there! The shopping cart info is only loaded into a session variable! There
are no cookies on the site to store this information. Am I mistaken in
believing when a browser window is closed that the session state is lost?

I don''t know what browser it is, but should that matter?

Thanks a million!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com


我是这个应用程序的开发者,我们唯一使用的是

会话,没有cookie。还有什么可能导致这个?


-

David Lozzi

网络应用/网络专家

Delphi Technology Solutions,Inc。

dlozzi(remove-this)@delphi-ts.com

" Curt_C [MVP]" < software_AT_darkfalz.com>在消息中写道

新闻:eA ************** @ TK2MSFTNGP12.phx.gbl ...
I am the developer of this application, and the only thing we are using are
sessions, there are no cookies. What else could possibly cause this?

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eA**************@TK2MSFTNGP12.phx.gbl...
不一定。该会话实际上将消失。当它超时时。
那就是说,如果它们关闭并重新打开它应该是一个新的会话,如果它不是那么它们必须使用更多的东西然后只是会议......

-
Curt Christianson
网站&脚本: http://www.Darkfalz.com
博客: http://blog.Darkfalz.com

" David Lozzi" < dlozzi @(删除-此)delphi-ts.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
大家好,
到目前为止,我的客户网站上有一台计算机存在问题。
如果用户加载购物车然后关闭所有浏览器窗口,
然后打开它们,然后返回到网站,购物车
信息就在那里!购物车信息仅加载到会话变量中!网站上没有用于存储此信息的Cookie。我是否错误地认为当浏览器窗口关闭时会话状态丢失了?

我不知道它是什么浏览器,但这应该重要吗?

万分感谢!!

- David Lozzi
Web应用程序/网络专家
Delphi Technology Solutions,Inc。 /> dlozzi(remove-this)@delphi-ts.com
Not necessarily. The session will actually "go away" when it times out.
That said, if they close and reopen it should be a new session, if its not
then they must be using something more then JUST sessions.....

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello All,

I am having an issue with thus far one computer on my client''s web site.
If the user loads the shopping cart and then closes all browser windows,
then opens them back up, goes back to the site, the shopping cart
information is there! The shopping cart info is only loaded into a session
variable! There are no cookies on the site to store this information. Am I
mistaken in believing when a browser window is closed that the session
state is lost?

I don''t know what browser it is, but should that matter?

Thanks a million!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com



首先,这是传统的ASP还是ASP.NET?


在传统中ASP(我们应该开始称之为经典)会话是由内存会话ID cookie维护的
。只要浏览器保持

发送相同的cookie,服务器就会将其连接到相关的

会话。会话数据驻留在服务器的内存中并保留

,直到会话因不活动而超时(没有新的ASP请求)或

session.abandon被调用。 />

当浏览器的进程关闭时,应该销毁内存中的cookie。您使用的浏览器和版本是什么?您是否正在使用另一个为您启动浏览器的

应用程序?


尝试在页面上显示会话ID(Session.SessionID)并查看它是否<浏览器关闭并重新启动后,
保持不变。


如果您使用的是ASP.NET,则需要在.net新闻组上询问。


-

Mark Schupp

开发主管

诚信电子学习
< a rel =nofollowhref =http://www.ielearning.comtarget =_ blank> www.ielearning.com

" David Lozzi" < dlozzi @(删除-此)delphi-ts.com>在消息中写道

新闻:eM ************** @ tk2msftngp13.phx.gbl ...
First, is this traditional ASP or ASP.NET?

In "traditional" ASP (we should start calling it "classic") sessions are
maintained by an in-memory session id cookie. As long as the browser keeps
sending the same cookie the server will connect it to the associated
session. The session data resides in memory on the server and is retained
until the session times out from inactivity (no new ASP requests) or
session.abandon is called.

An in-memory cookie should be destroyed when the browser''s process is
closed. What browser and version are you using? Are you using another
application that launches the browser for you?

Try displaying the session id (Session.SessionID) on a page and see if it
remains the same after the browser is closed and re-started.

If you are using ASP.NET you will need to ask on a .net newsgroup.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message
news:eM**************@tk2msftngp13.phx.gbl...
我是开发者这个应用程序,我们唯一使用
的是会话,没有cookie。还有什么可能导致这种情况?

-
David Lozzi
Web应用程序/网络专家
Delphi Technology Solutions,Inc。
dlozzi(删除 - 这个)@ delphi-ts.com

" Curt_C [MVP]" < software_AT_darkfalz.com>在消息中写道
新闻:eA ************** @ TK2MSFTNGP12.phx.gbl ...
I am the developer of this application, and the only thing we are using are sessions, there are no cookies. What else could possibly cause this?

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eA**************@TK2MSFTNGP12.phx.gbl...
不一定。该会话实际上将消失。当它超时时。
那就是说,如果它们关闭并重新打开它应该是一个新的会话,如果它的
不是那么它们必须使用更多的东西然后JUST会话......

-
Curt Christianson
网站&脚本: http://www.Darkfalz.com
博客: http://blog.Darkfalz.com

" David Lozzi" < dlozzi @(删除-此)delphi-ts.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
大家好,
到目前为止,我的客户网站上有一台计算机存在问题。
如果用户加载购物车然后关闭所有浏览器窗口,
然后打开它们,然后返回到网站,购物车
信息就在那里!购物车信息仅加载到
会话变量中!网站上没有用于存储此信息的Cookie。我错误地认为当浏览器窗口关闭时,会话状态丢失了吗?

我不知道它是什么浏览器,但这应该重要吗?

万分感谢!!

- David Lozzi
Web应用程序/网络专家
Delphi Technology Solutions,Inc。 /> dlozzi(remove-this)@delphi-ts.com
Not necessarily. The session will actually "go away" when it times out.
That said, if they close and reopen it should be a new session, if its not then they must be using something more then JUST sessions.....

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello All,

I am having an issue with thus far one computer on my client''s web site.
If the user loads the shopping cart and then closes all browser windows,
then opens them back up, goes back to the site, the shopping cart
information is there! The shopping cart info is only loaded into a session variable! There are no cookies on the site to store this information. Am I mistaken in believing when a browser window is closed that the session
state is lost?

I don''t know what browser it is, but should that matter?

Thanks a million!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com




这篇关于关闭浏览器后,会话状态不会结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆