473,511 Members | 10,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session timout problem

mg
I can't get WebForm1 to load load automatically after a session timeout, with the following code. How can I do so

In Web.config

<sessionState
mode="InProc
timeout="1"
/

In Global.asax.cs

protected void Session_End(Object sender, EventArgs e

Response.Redirect("WebForm1.aspx")
}
Nov 18 '05 #1
4 1246
i think you do not have to use

timeout = "1"

use

timeout= 1
"mg" <mg@theworld.com> wrote in message
news:4E**********************************@microsof t.com...
I can't get WebForm1 to load load automatically after a session timeout, with the following code. How can I do so?
In Web.config:

<sessionState
mode="InProc"
timeout="1"
/>
In Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)
{
Response.Redirect("WebForm1.aspx");
}

Nov 18 '05 #2
Max
The session_end does not initiate another http request if that's what you're
thinking. However, on the next request the client makes, it should activate
the session_end -- although there are known issues with that. You cannot
always rely on that triggering... do a search for that session_end sub --
also note that in an earlier version of .net that sub's name is different.
In my tests, one works, the other doesn't. I don't know if it's bugged or
what!

-Max
"mg" <mg@theworld.com> wrote in message
news:4E**********************************@microsof t.com...
I can't get WebForm1 to load load automatically after a session timeout, with the following code. How can I do so?
In Web.config:

<sessionState
mode="InProc"
timeout="1"
/>
In Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)
{
Response.Redirect("WebForm1.aspx");
}

Nov 18 '05 #3
sorry timeout="1" is ok in web.config but not if used in aspx page ,in aspx
page it would be session.timeout=1
"Ismail Rajput" <hu************@hotmail.com> wrote in message
news:uF****************@TK2MSFTNGP10.phx.gbl...
i think you do not have to use

timeout = "1"

use

timeout= 1
"mg" <mg@theworld.com> wrote in message
news:4E**********************************@microsof t.com...
I can't get WebForm1 to load load automatically after a session timeout,

with the following code. How can I do so?

In Web.config:

<sessionState
mode="InProc"
timeout="1"
/>
In Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)
{
Response.Redirect("WebForm1.aspx");
}


Nov 18 '05 #4
here is an article to sort out the confusion
http://www.developersdex.com/gurus/articles/746.asp

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Max" <ma*****@portvista.com> wrote in message
news:eQ*******************@twister.tampabay.rr.com ...
The session_end does not initiate another http request if that's what you're thinking. However, on the next request the client makes, it should activate the session_end -- although there are known issues with that. You cannot
always rely on that triggering... do a search for that session_end sub --
also note that in an earlier version of .net that sub's name is different.
In my tests, one works, the other doesn't. I don't know if it's bugged or
what!

-Max
"mg" <mg@theworld.com> wrote in message
news:4E**********************************@microsof t.com...
I can't get WebForm1 to load load automatically after a session timeout,

with the following code. How can I do so?

In Web.config:

<sessionState
mode="InProc"
timeout="1"
/>
In Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)
{
Response.Redirect("WebForm1.aspx");
}


Nov 18 '05 #5

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

Similar topics

6
2553
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
1
308
by: Jennifer | last post by:
Hello everybody my ASP.NET app is running fine on my development system. But some errors occured after installation on another server. I believe the reason is a session timeout My question is...
8
5470
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...
18
6854
by: Rippo | last post by:
Hi I am using role base forms authentication in asp.net and have come across a problem that I would like advice on. On a successful login a session variable is set to identify a user. This is...
2
1138
by: LiliA | last post by:
Hello everyone, I have a problem I have no idea why it happens. I have an ASP.NET application that has around 7 forms. To move from one form to another I use "redirect". I also use around 12...
1
1642
by: bhasky | last post by:
We have two production server, Prod server 1 giving error Session Timout before 90min where it has been set 90 in global.asa Differences Prod Ser 1 : Windows 2003, No Service Pack Installed...
14
2274
by: GaryDean | last post by:
The web.config in my asp.net application, running on Server2003, has this entry: <sessionState mode="InProc" timeout="40". In IIS the asp.net State Management timeout setting is 40 for my website....
2
1150
by: =?Utf-8?B?bWF2cmlja18xMDE=?= | last post by:
Hi, I have an application which is using Form Authenticatoin. I have set the timout to 120 (minutes). Does the sessionState setting in the web.config effect it? If I leave the sessionState...
1
991
by: ramansv | last post by:
Hi am using .net page (asax) for the session timeout. In my application the session timeout is happining properly and in that am using the license to release which is releasing properly. The...
7
20881
by: anithaapr05 | last post by:
Hi, I am creating a session when user successfully login to the site and user gets a form to input some data into database. Assume that user entered data into some fileds and let the browser...
0
7251
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
7367
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
7430
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...
1
7089
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
5673
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
4743
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
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.