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

Session Timeout

how to make session not to time out (infinite life time)?
if not possible how to increase the time out? for my application its timing
out fairly very quick even though i have time out = 99999
Nov 18 '05 #1
4 7307
I'm not sure you would want to do this. It would cause a relatively small
number of users to fill up your available memory fairly rapidly.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Nedu N" <ne****@hotmail.com> wrote in message
news:#8*************@TK2MSFTNGP11.phx.gbl...
how to make session not to time out (infinite life time)?
if not possible how to increase the time out? for my application its timing out fairly very quick even though i have time out = 99999

Nov 18 '05 #2
Look in your machine config (Windows\.NET\machine.config) the timeout is normally set to 30 min

----- Nedu N wrote: ----

how to make session not to time out (infinite life time)
if not possible how to increase the time out? for my application its timin
out fairly very quick even though i have time out = 9999

Nov 18 '05 #3
Hi Nedu,
Thanks for posting in the community!
From your description, you're wanting to configure the Session State as
never timeout,yes?
If there is anything I misunderstood, please feel free to let me know.

Based my understanding, the Session State are all the serverside resources
(memory or DataBase), since the web application is a multi-user service
application and session state is every user based, it'll cause large
exhaust and burden for the Application server. Therefore we should limit
the session timeout to a proper value so that when use is no longer using
the appliation, the server can stop the session and collect back the memory
and resource as soon as possible.

As for the Session State setting in ASP.NET, it can be configured via the
<sessionState> element in both web.config or machine.config(machine level,
for all the web apps on the certain machine).

And as for the problem you mentioned that the session state will lose
though you've set the Timeout value to a large value, I think it may caused
by the asp.net appdomain or aspnet_wp.exe is recycled, here is the
description in MSDN:
----------------------------------------------------------
When using the in-process session-state mode, session-state data is lost if
aspnet_wp.exe or the application domain restarts. These restarts commonly
occur in the following circumstances:

##Setting an attribute in the <processModel> element of the application's
Web.config file that causes a new process to start when a condition is met,
such as memoryLimit.

##The Global.asax or Web.config file is modified.

##Changes to the \Bin directory of the Web application.

##Antivirus software scans and modifies the Global.asax file, the
Web.config file, or a file in the \Bin directory of the Web application.

-------------------------------------------------------------
For more detailed info, you may view the following reference in MSDN:

#Session State
http://msdn.microsoft.com/library/en...ionState.asp?f
rame=true
In addtion, here is another techarticles on ASP.NET performance counter,
you may also have a look to see whether it helps.
#Performance Counters for ASP.NET
http://msdn.microsoft.com/library/en...ormanceCounter
sForASPNET.asp?frame=true
Please check out the above items. If you have any quesitons on them, please
feel free to let me know.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
Hi Nedu,
Have you had a chance to check out my suggestions or have you got any ideas
on this issue? If you have any questions or need any assistance, please
feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5

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

Similar topics

12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
5
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
6
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.