473,396 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Session State ?

WJ
I am setting the Session State TimeOut to 54 minutes (20 is default) in the
Web.Config. I use SQL Server to persist the session states & ID. As long as
I am remaining in the web sites, I see all the data persisted from page to
page. However, once I quit the browser (MS/IE 6.1) and got backin within 2
seconds, the persisted data no long existed. My impression on the "timeout"
paramter is that as long as I come back to my site within the defined
timeout period (54 minutes), I should see my data from previous sessions
without re-entering them. At this point I am still running my web app. on my
XP/Sp1 Prof.. and SQL Developer edition. I inspected the ASPState DB and it
appears to capture the sessions properly. The time out is also recorded to
the database properly.

Thanks for your help,

John
Nov 18 '05 #1
2 1488
WJ,
This issue requires an understanding about how ASP.NET session works.
First, ASP.NET will put a non-persistent cookie in the user's browser called
ASP.NET SessionID. Since that cookie is present with the Session ID on
every request, ASP.NET can match the browser with the correct session. When
you close the browser, and since it's a non-persistent cookie, the cookie is
automatically discarded, so you open another browser, and you don't have the
cookie. The session is still available on the server, but you don't have
the cookie to match you up with it, so ASP.NET issues you another
non-persistent cookie along with another session. To support multi-browser
sessions, you could add code to make the cookie persistent in your
Global.asax file on Session start.

Best regards,
Jeffrey Palermo
"WJ"<Jo*******@HotMail.Com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
I am setting the Session State TimeOut to 54 minutes (20 is default) in the Web.Config. I use SQL Server to persist the session states & ID. As long as I am remaining in the web sites, I see all the data persisted from page to
page. However, once I quit the browser (MS/IE 6.1) and got backin within 2
seconds, the persisted data no long existed. My impression on the "timeout" paramter is that as long as I come back to my site within the defined
timeout period (54 minutes), I should see my data from previous sessions
without re-entering them. At this point I am still running my web app. on my XP/Sp1 Prof.. and SQL Developer edition. I inspected the ASPState DB and it appears to capture the sessions properly. The time out is also recorded to
the database properly.

Thanks for your help,

John

Nov 18 '05 #2
Hi John,

This sounds like the expected behaviour: A Session ends if the user fails
request your site's page for 54 minutes OR they close the browser. Don't
forget that the session cookie is stored in memory in the browser so it
disappears when the browser closes.

Ken

"WJ" <Jo*******@HotMail.Com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
I am setting the Session State TimeOut to 54 minutes (20 is default) in the
Web.Config. I use SQL Server to persist the session states & ID. As long
as
I am remaining in the web sites, I see all the data persisted from page to
page. However, once I quit the browser (MS/IE 6.1) and got backin within 2
seconds, the persisted data no long existed. My impression on the
"timeout"
paramter is that as long as I come back to my site within the defined
timeout period (54 minutes), I should see my data from previous sessions
without re-entering them. At this point I am still running my web app. on
my
XP/Sp1 Prof.. and SQL Developer edition. I inspected the ASPState DB and
it
appears to capture the sessions properly. The time out is also recorded to
the database properly.

Thanks for your help,

John


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
1
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
5
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.