473,568 Members | 2,964 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 1796
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("isLogg edin") = 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.Append Header("Refresh ", Convert.ToStrin g((Session.Time out * 60) +
10) & ";URL=timeout.a spx")

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:%2******** ********@tk2msf tngp13.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.Append Header("Refresh ", Convert.ToStrin g((Session.Time out * 60) +
10) & ";URL=timeout.a spx")

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:%2******** ********@tk2msf tngp13.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
4502
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 the session_start function ? I know the cookie expires after the session ends, but when I look at my HTTP headers, the cookie's expiration date...
3
1637
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 ASP.NET? The obvious answer is, I think, the Session object. But one thing annoys me: a session can expire. It is difficult to guess the expiration...
4
2008
by: Igor | last post by:
Is it possible to point current context's session to another active session based on a SessionID?
1
2731
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 want to make them log back in order to see another page (ie turn "LoggedOn" = false). Any ideas or suggestions? Thanks!
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 minutes or that no pages activity has taken place in that time regardless of wether or not a session variable has been accessed? 2. When a user...
17
5184
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 running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh"...
6
1747
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: 1) When is memory used for Session State freed (or essentially freed)? - if ever...
17
4957
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 asp.net app (written in C#) running which has the only purpose of rendering a page with a "Next" button on it and some status info. When the user clicks...
13
9932
by: Goofy | last post by:
Does anyone know how I can kill a session by session ID ? -- Goofy
15
4786
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. Imagine a case when someone gets to a form with CAPTCHA, a session will be started in the server; and then the person decides to jump to another site...
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7916
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6275
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5498
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1207
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.