473,509 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASPX Page Timeout - Session Timeout

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 |
Properties | Configuration | Options | Enable Session State
Session timeout 20
(3) within Global.asax.vb file - Session_Start subroutine can use
Session.Timeout=x minutes or
(4) within any web page, i.e., <web page>.aspx can use Session.Timeout=value
Second: Problem I'm having is understanding what controls what! Basically, I need the capability for most data entry aspx web pages to be say 20 minutes timeout. One other data entry aspx web page I would like to be 60 minutes. I'm having a problem doing this.
Question(1) - Can you dynamically vary the session timeout for different aspx web pages - and if so HOW would I do this.
Question(2) - Where can I understand BEST the relationship between all the ways to change the timeout values - i.e., does each method discussed above work to change the session timeout.
PLEASE ADVISE.
Nov 18 '05 #1
4 15445
Try this in your app:

Session.Timeout = 60

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
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 | Properties | Configuration | Options | Enable Session State
Session timeout 20
(3) within Global.asax.vb file - Session_Start subroutine can use
Session.Timeout=x minutes or
(4) within any web page, i.e., <web page>.aspx can use Session.Timeout=value Second: Problem I'm having is understanding what controls what! Basically, I need the capability for most data entry aspx web pages to be
say 20 minutes timeout. One other data entry aspx web page I would like to
be 60 minutes. I'm having a problem doing this. Question(1) - Can you dynamically vary the session timeout for different aspx web pages - and if so HOW would I do this. Question(2) - Where can I understand BEST the relationship between all the ways to change the timeout values - i.e., does each method discussed above
work to change the session timeout. PLEASE ADVISE.

Nov 18 '05 #2
see >>
"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
First: There are several ways to confuse one regarding session timeout.
(1) web.config - <sessionState timeout="20">
default session timeout for site (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site | Properties | Configuration | Options | Enable Session State
Session timeout 20 nothing to do with .net - classic asp session timeout (3) within Global.asax.vb file - Session_Start subroutine can use
Session.Timeout=x minutes or overriding the default session timeout at session start (4) within any web page, i.e., <web page>.aspx can use Session.Timeout=value Second: Problem I'm having is understanding what controls what! Basically, I need the capability for most data entry aspx web pages to be
say 20 minutes timeout. One other data entry aspx web page I would like to
be 60 minutes. I'm having a problem doing this.
overriding current session timeout Question(1) - Can you dynamically vary the session timeout for different aspx web pages - and if so HOW would I do this.
do it on the page, note once changed, it stays changed until the next

session
Question(2) - Where can I understand BEST the relationship between all the ways to change the timeout values - i.e., does each method discussed above
work to change the session timeout.
PLEASE ADVISE.

Nov 18 '05 #3
From my understanding, page level changes to the session state override
everything else, and web.config controls the default timeout.

"bruce barker" <no***********@safeco.com> wrote in message
news:uV**************@tk2msftngp13.phx.gbl...
see >>
"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
First: There are several ways to confuse one regarding session timeout.
(1) web.config - <sessionState timeout="20">
default session timeout for site
(2) IIS Manager | Internet Information Services | ServerNode | Default

Web Site |
Properties | Configuration | Options | Enable Session State
Session timeout 20 nothing to do with .net - classic asp session timeout
(3) within Global.asax.vb file - Session_Start subroutine can use
Session.Timeout=x minutes or

overriding the default session timeout at session start
(4) within any web page, i.e., <web page>.aspx can use

Session.Timeout=value
Second: Problem I'm having is understanding what controls what!

Basically, I need the capability for most data entry aspx web pages to be
say 20 minutes timeout. One other data entry aspx web page I would like

to be 60 minutes. I'm having a problem doing this.
overriding current session timeout
Question(1) - Can you dynamically vary the session timeout for different aspx web pages - and if so HOW would I do this.
do it on the page, note once changed, it stays changed until the next

session
Question(2) - Where can I understand BEST the relationship between all

the ways to change the timeout values - i.e., does each method discussed above
work to change the session timeout.
PLEASE ADVISE.


Nov 18 '05 #4
Read this...it may help:
http://www.experts-exchange.com/Web/Q_20911575.html
"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.com...
Bruce:

Before I composed this newsletter to assistance, I did do the following...

I had one Page_Load sub of ASPX web page with Session.Timeout = 20.
I had another Page_Load sub of ASPX web page with Session.Timeout = 60.

There were 2 ways I could do this - I assumed either in code-behind / aspx.vb Page_Load or in HTML - JavaScript. I tried both and here is what
happens.
In both instances - I always get default that is also in the web.config of 20 minutes. Is there an example of where two pages timeout with different settings. I also attempted to put the <% Session.Timeout=20 %> or <% Session.Timeout=60
%> in Header section of web page - <script JavaScript>.
I basically keep getting 20 minutes ALWAYS FOR ALL PAGES.

What AM I MISSING or HAVE I OVERLOOKED - AGAIN - THIS IS WHY I ASKED MY QUESTIONS THE WAY I DID...
"bruce barker" wrote:
see >>
"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20">

> default session timeout for site

(2) IIS Manager | Internet Information Services | ServerNode | Default
Web Site |
Properties | Configuration | Options | Enable Session State
Session timeout 20

> nothing to do with .net - classic asp session timeout

(3) within Global.asax.vb file - Session_Start subroutine can use
Session.Timeout=x minutes or

> overriding the default session timeout at session start

(4) within any web page, i.e., <web page>.aspx can use

Session.Timeout=value
Second: Problem I'm having is understanding what controls what!

Basically, I need the capability for most data entry aspx web pages to be say 20 minutes timeout. One other data entry aspx web page I would like to be 60 minutes. I'm having a problem doing this.
> overriding current session timeout

Question(1) - Can you dynamically vary the session timeout for
different aspx web pages - and if so HOW would I do this.
> do it on the page, note once changed, it stays changed until the next

session
Question(2) - Where can I understand BEST the relationship between all
the ways to change the timeout values - i.e., does each method discussed above work to change the session timeout.
PLEASE ADVISE.


Nov 18 '05 #5

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

Similar topics

1
7945
by: cb | last post by:
When a Session timeout occurs, I get a 403 - Forbidden. The address bar contains the path that I was intending to go to but couldn't because of the timeout. How can I redirect the page when a...
0
1083
by: Chakra Venkatesan | last post by:
Hi, My application has a session timeout of 15 mins. I have a page for which I have disabled the session state. If I invoke the this page from a new browser session, there is no session created...
2
2269
by: francois | last post by:
Hi, I would like to redirect the user to the login page after the session time out. I tried to do a trick in the global.aspx.cs protected void Application_BeginRequest(Object sender,...
2
463
by: Eilsa | last post by:
Dear all, My ASP.NET page always session timeout within 20 minutes. However, I've set the following statement at the web.config <sessionState timeout="400" /> Any alternative solution to...
1
2410
by: PipScouser | last post by:
Hi, Most times, but not always, after my session times out (default 20 mins) if a user clicks on any control that necessitates a code-behind call, I get the 'Cannot find Server or DNS Error'...
6
1582
by: Maspr | last post by:
I am trying to build a mixed site of ASP and ASP.NET. I am having trouble keeping the ASP session from timing out when using just the ASP.NET pages. The ASP.NET pages has a Master Page with an...
25
6034
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
0
1239
by: gnewsgroup | last post by:
I think I understand the difference between forms authentication timeout and the sessionstate timeout. That said, they are giving me headache. I have a simple test application using Forms...
4
7161
by: goscottie | last post by:
I used submodal as my popup window. With some tweaks, it working great in my app. However, I can't find a way to detect session timeout in the popup window. The app is a form based...
0
7233
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
7342
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
7410
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
5650
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,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4729
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
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
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
774
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.