473,503 Members | 10,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session expiration message

Is there anyway to when the users loggin session expires (we have it set to
expire after 15minutes of no usage) show a "session expired" message page
when they try to navigate the site after it did?
Nov 19 '05 #1
3 1791
Brian Henry wrote:
Is there anyway to when the users loggin session expires (we have it set to
expire after 15minutes of no usage) show a "session expired" message page
when they try to navigate the site after it did?


As part of the login-process, set some specific session variable
( Session("isLoggedin") = true; ). On every page, check for
this variable. If it is there, fine. If it isn't, then either
the session has expired or it's a "new" user, and you can show
that message.

--
Hans Kesting
Nov 19 '05 #2
Hi Brian..

Add this to Page_Load

Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) +
10) & ";URL=timeout.aspx")

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is there anyway to when the users loggin session expires (we have it set to expire after 15minutes of no usage) show a "session expired" message page
when they try to navigate the site after it did?

Nov 19 '05 #3
I was using this method with success until just this morning. IT STOPPED
WORKING!! Does anyone know if the latest microsoft patch effected this? I
no longer see the Meta Tag Refresh in the source of the page when it's
rendered. And to be honest I never really looked before since it worked like
it was supposed to.

HELP!!

"Michael" wrote:
Hi Brian..

Add this to Page_Load

Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) +
10) & ";URL=timeout.aspx")

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is there anyway to when the users loggin session expires (we have it set

to
expire after 15minutes of no usage) show a "session expired" message page
when they try to navigate the site after it did?


Nov 19 '05 #4

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

Similar topics

2
4499
by: Christophe Lance | last post by:
Hello, I use PHP session cookie to store an id number. I know how to set a cookie expiration date using the setcookie function, but how to set an expiration date when the cookie is created by...
3
1629
by: Zaccariah Kowalsky | last post by:
Hello, I have a webapp with on each page a "language" drop down list. Now, if I choose X, I want to initialise the drop down list to X. Easy to understand. But what is the best way to do this in...
4
2003
by: Igor | last post by:
Is it possible to point current context's session to another active session based on a SessionID?
1
2727
by: VB Programmer | last post by:
I know you can make cookies expire, but how about session variables? I'm basically using session for security, etc... One variable is session("LoggedOn"). If a page sits idle for 30 minuts I...
1
366
by: ChrisN | last post by:
Hi there, Two questions related to each other. 1. Session variables expire by defualt when not used for 20 minutes. Does "used" mean that a user has not access any session varibles in 20...
17
5176
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
6
1739
by: spacehopper_man | last post by:
I'm considering ditching all use of Session state in favour of Application state. This is because - from what I can work out - it will be more memory efficient for me. I have three questions:...
17
4948
by: Riaan | last post by:
Hi guys! I have an issue that needs urgent resolution. Imagine this scenario: You have: 1 production server running Windows Server 2003, IIS6 and an instance of MSDE 2000. There is an...
13
9921
by: Goofy | last post by:
Does anyone know how I can kill a session by session ID ? -- Goofy
15
4777
by: sb5309 | last post by:
When one uses CAPTCHA (form with verification code), a session is required to keep the session data. In examples that I have seen on the net, I did not see a session is closed after use. ...
0
7067
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
7264
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,...
1
6975
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
7449
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
5562
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
4666
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
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
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.