473,394 Members | 1,971 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,394 software developers and data experts.

Why my session expires? And will a sessionID survive...?

Hello all,

In Session_OnStart, I set a session variable:

Session["LogInTime"] = DateTime.Now;

and

Session.Timeout = 15;

Then the user begin to browse around ASPX pages.
In those pages, Session["LogInTime"] is queried
and displayed, but not modified, and no more
Session variable is created.

About 15 minutes after LogInTime, the session
expires and then the LogInTime get renewed, even
though the user are still hitting ASPX pages.
What can I do to prevent this session from
expiration? (InProc mode)

.....

And by the way, may I ask that whether the same
SessionID is used if the Session is not yet expired
on the client side, but the application on the
server got recycled or restarted? I know that
everything inside the Session variable collection
will be lost, but will the SessionID survive in
this way??

Jordan
Nov 18 '05 #1
3 1881

you can configure the session timeout in IIS. although to be able to
continue with sessions you may need to consider along the lines of
setting up a state server

Welman Jordan wrote:
Hello all,

In Session_OnStart, I set a session variable:

Session["LogInTime"] = DateTime.Now;

and

Session.Timeout = 15;

Then the user begin to browse around ASPX pages.
In those pages, Session["LogInTime"] is queried
and displayed, but not modified, and no more
Session variable is created.

About 15 minutes after LogInTime, the session
expires and then the LogInTime get renewed, even
though the user are still hitting ASPX pages.
What can I do to prevent this session from
expiration? (InProc mode)

....

And by the way, may I ask that whether the same
SessionID is used if the Session is not yet expired
on the client side, but the application on the
server got recycled or restarted? I know that
everything inside the Session variable collection
will be lost, but will the SessionID survive in
this way??

Jordan

Nov 18 '05 #2
hi,

ya sessionId Remains same after session
(if browser is not closed...)
--
Thanks and Regards,

Amit Agarwal
Software Programmer(.NET)
"Welman Jordan" <_n**************@163.com> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Hello all,

In Session_OnStart, I set a session variable:

Session["LogInTime"] = DateTime.Now;

and

Session.Timeout = 15;

Then the user begin to browse around ASPX pages.
In those pages, Session["LogInTime"] is queried
and displayed, but not modified, and no more
Session variable is created.

About 15 minutes after LogInTime, the session
expires and then the LogInTime get renewed, even
though the user are still hitting ASPX pages.
What can I do to prevent this session from
expiration? (InProc mode)

....

And by the way, may I ask that whether the same
SessionID is used if the Session is not yet expired
on the client side, but the application on the
server got recycled or restarted? I know that
everything inside the Session variable collection
will be lost, but will the SessionID survive in
this way??

Jordan

Nov 18 '05 #3
hi,

Thank you for your reply!
^_^

".NET Follower" <am*************@SoftHome.net> wrote in message
news:#p**************@TK2MSFTNGP11.phx.gbl...
: hi,
:
: ya sessionId Remains same after session
: (if browser is not closed...)
:
:
: --
: Thanks and Regards,
:
: Amit Agarwal
: Software Programmer(.NET)
: "Welman Jordan" <_n**************@163.com> wrote in message
: news:O%***************@tk2msftngp13.phx.gbl...
: > Hello all,
: >
: > In Session_OnStart, I set a session variable:
: >
: > Session["LogInTime"] = DateTime.Now;
: >
: > and
: >
: > Session.Timeout = 15;
: >
: > Then the user begin to browse around ASPX pages.
: > In those pages, Session["LogInTime"] is queried
: > and displayed, but not modified, and no more
: > Session variable is created.
: >
: > About 15 minutes after LogInTime, the session
: > expires and then the LogInTime get renewed, even
: > though the user are still hitting ASPX pages.
: > What can I do to prevent this session from
: > expiration? (InProc mode)
: >
: > ....
: >
: > And by the way, may I ask that whether the same
: > SessionID is used if the Session is not yet expired
: > on the client side, but the application on the
: > server got recycled or restarted? I know that
: > everything inside the Session variable collection
: > will be lost, but will the SessionID survive in
: > this way??
: >
: > Jordan
: >
: >
:
:
Nov 18 '05 #4

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

Similar topics

11
by: doltharz | last post by:
Please Help me i'm doing something i though was to be REALLY EASY but it drives me crazy The complete code is at the end of the email (i mean newsgroup article), i always use Option...
4
by: David B | last post by:
Hi, Could somebody please tell me how I check whether a session is dead based soley on the Session.SessionID. At present the timeout is set to 20 minutes in IIS, I am aware that I can reset...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
5
by: news.microsoft.com | last post by:
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I...
2
by: Paul W | last post by:
Using default session handling (ie. inproc and with cookies). I have a 'logout' button that returns the user to the login screen and does a session.abandon. HOWEVER, if they then log back in...
5
by: news.microsoft.com | last post by:
We are logging many events on our application but cant seem to discover how to determine who the user was in the session end event, as any session storage seems to have disapeared at the point at...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
13
by: Goofy | last post by:
Does anyone know how I can kill a session by session ID ? -- Goofy
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.