473,499 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session Timeout :- difference between Pressing F5 and selecting another page

I have been working on session timeout for an application and I got a
lot of help from this discussion Board. My Thanks to all of you.

For e.g

If i have a website which has multiple pages, I open the first page
and then log to the second page and so forth.. Don't session timeout
value get reset each time we go to another page ?

I have noticed that if i go to the initial page and keep pressing F5
the page gets refreshed and the session timeout timer will start after
the last refresh done.

But this is not the case if i have a website with multiple pages..The
session timeout will start after i open the first page and no matter
if i keep browsing I still get reloaded to "Index.aspx" after 30
seconds using the code below

Response.AppendHeader("Refresh",Convert.ToString(( Session.Timeout *
60) -1170) + ";URL=Index.aspx");

What is the difference between Refresh {Pressing F5} and getting
another page by clicking on the link.

Thank you,
astrix

Aug 29 '07 #1
2 3325
Astrix wrote:
I have been working on session timeout for an application and I got a
lot of help from this discussion Board. My Thanks to all of you.

For e.g

If i have a website which has multiple pages, I open the first page
and then log to the second page and so forth.. Don't session timeout
value get reset each time we go to another page ?
Yes.
I have noticed that if i go to the initial page and keep pressing F5
the page gets refreshed and the session timeout timer will start after
the last refresh done.

But this is not the case if i have a website with multiple pages..
Yes, it is.
The
session timeout will start after i open the first page and no matter
if i keep browsing I still get reloaded to "Index.aspx" after 30
seconds using the code below

Response.AppendHeader("Refresh",Convert.ToString(( Session.Timeout *
60) -1170) + ";URL=Index.aspx");
Of course you will be. The refresh will be triggered 30 seconds after
the page has been loaded, that has absolutely nothing to do with the
session timeout. The refresh is a function in the browser, it doesn't
know anything at all about the Sessions on the server.
What is the difference between Refresh {Pressing F5} and getting
another page by clicking on the link.
As far as the session timeout is concerned, none at all.

--
Göran Andersson
_____
http://www.guffa.com
Aug 29 '07 #2
Not sure bit it looks like to me that you think that Session.Timeout is the
time to the end of the session ? This is a fixed value that holds the
duration for a session so your calculation will always give the same
value...

---
Patrice

"Astrix" <ag*****@gmail.coma écrit dans le message de news:
11*********************@22g2000hsm.googlegroups.co m...
>I have been working on session timeout for an application and I got a
lot of help from this discussion Board. My Thanks to all of you.

For e.g

If i have a website which has multiple pages, I open the first page
and then log to the second page and so forth.. Don't session timeout
value get reset each time we go to another page ?

I have noticed that if i go to the initial page and keep pressing F5
the page gets refreshed and the session timeout timer will start after
the last refresh done.

But this is not the case if i have a website with multiple pages..The
session timeout will start after i open the first page and no matter
if i keep browsing I still get reloaded to "Index.aspx" after 30
seconds using the code below

Response.AppendHeader("Refresh",Convert.ToString(( Session.Timeout *
60) -1170) + ";URL=Index.aspx");

What is the difference between Refresh {Pressing F5} and getting
another page by clicking on the link.

Thank you,
astrix

Aug 30 '07 #3

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

Similar topics

2
3366
by: Jim Owen | last post by:
I know I';ve posted on this topic before, but it still doesn't work. I have a Session_End event in my Global.asax file, but it never fires. I have gone into my web.config file and in session...
4
15444
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...
11
2983
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.
10
3477
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
4
9411
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...
20
3746
by: Simon Says | last post by:
Hi, I've a login page in which after authenticating it via the Oracle DB, I will stored the user information into the Session. However, when the Session timeout occurs, all of the user...
25
6031
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
2
2233
by: Astrix | last post by:
Hi, I am working on a problem w.r.t session.timeout I have a code to redirect to this new page after 20 seconds. Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) -...
6
3752
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
7134
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
7180
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
7225
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
6901
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
7392
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...
1
4920
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
4605
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
3105
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...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.