473,507 Members | 6,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout Property for the Session Object in the Web.config file

Hello,

I put the following line into my Web.config file:

<system.web>
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

When I run the application via Visual Studio 2005, it brings up my
main Web Page, but nothing happens after 1 minute. I would have
thought that I would get an error message or some sort of status
message. What am I doing wrong? How can I test out the timeout
feature?

Thanks
Sam

Aug 15 '07 #1
2 3284
Sam,
You help everyone including yourself by posting your question in the group
that is relevant to the subject. The ASP.NET group is here:
http://msdn.microsoft.com/newsgroups...k.aspnet&fltr=

--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"so***********@gmail.com" wrote:
Hello,

I put the following line into my Web.config file:

<system.web>
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

When I run the application via Visual Studio 2005, it brings up my
main Web Page, but nothing happens after 1 minute. I would have
thought that I would get an error message or some sort of status
message. What am I doing wrong? How can I test out the timeout
feature?

Thanks
Sam

Aug 15 '07 #2
Sam,

The timeout is for the session state on the server. It is not going to
cause a change in the browser. If your browser tries to reconnect to the
server with that URL (which indicates session state, since it should have
been changed) then ASP.NET should react as if a new session was created.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<so***********@gmail.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
Hello,

I put the following line into my Web.config file:

<system.web>
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

When I run the application via Visual Studio 2005, it brings up my
main Web Page, but nothing happens after 1 minute. I would have
thought that I would get an error message or some sort of status
message. What am I doing wrong? How can I test out the timeout
feature?

Thanks
Sam

Aug 15 '07 #3

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

Similar topics

2
23300
by: Marco Gerlach | last post by:
Hello, on IIS6 running on Win2003 server std. I get this error "enablesessionstate Page directive is needed to use the Session object" my web.config looks like this:
1
2875
by: Scott Walters | last post by:
Hi, I have an asp.net webapp that uses some javascript in a hidden frame on the browser to poll the server every 30 seconds, using an http post. I also want my sessions to timeout in the...
14
3357
by: Schoo | last post by:
I have an asp.net app that uses session objects (ag. session("UserID")). The app works fine in development/debug mode. I released it to the test server (Windows 2000 server with other .NET...
6
1459
by: Mr m?ll | last post by:
Hi Im quite new to web programming and I'm buildning this ASP .net page. I use VS 2003 and C# + IIS 5. The page consists of a login page that leads to a frame page (with some pages, reading from...
2
1283
by: Steve Peterson | last post by:
Hi I have an application that is designed for multi clients, therefore users must go through a login page. Upon logging in I set some properties in a class, one of which is the user id (integer)...
6
2543
by: Mike Moore | last post by:
I'm not very familiar with the web config file. I would like to use the timeout item in the session state for our connection string, but not use the stateconnection string and sqlconnectionstring...
1
1237
by: Zean Smith | last post by:
Is it possible to export the ASP.NET Session object as file/XML for later use? I don't want to use Serialization because my class is pretty complicated and it involves IDictionary which doesn't...
0
929
by: Darshan Mehta | last post by:
I am creating a Webservice that saves the user information in the session state instead of a cookie. In the web.config, I enabled session state and set the timeout to "5" (for 5 minutes). I have...
1
4294
by: Aartware | last post by:
I've read all the items about the IHttpHandler and the session-object and I see nothing wrong with my code, but still I have no session object. This is my code: Imports System Imports...
0
7220
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
7105
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
7308
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
7371
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
7479
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
5617
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,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.