Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Astrix - 29 Aug 2007 19:25 GMT
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
Göran Andersson - 29 Aug 2007 22:49 GMT
> 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.
[quoted text clipped - 4 lines]
> 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
[quoted text clipped - 3 lines]
> 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.

Signature

Göran Andersson
_____
http://www.guffa.com

Patrice - 30 Aug 2007 09:37 GMT
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

>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.
[quoted text clipped - 22 lines]
> Thank you,
> astrix

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.