| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a login page which will log an user into an administrator mode if their username and password is correct
e.g. If User = "Steve" AND Password = steve Then session("AdminUser")=True Else session("AdminUser")=false My understanding is that the session will eventually timeout. When this happens, is there a way of automating an alert when a session times out? Something along the lines of Msgbox "Session timed out" & vbNewLine & vbNewLine & "Please login again", vbOkOnly, "Admin Mode" With the OK button click event re-directing to the login page. Many Thanks Steve |
|
#2
|
||||
|
||||
|
Hi
You can't access the Response object once the session has timed out, so you would need to do this client side. You would need to do a META REFRESH or Javascript setTimeout or similar MK |
|
#3
|
||||
|
||||
|
Quote:
The timeout or the seconds in the META REFRESH should match the session timeout, or preferably exceed it slightly MK |
|
#4
|
|||
|
|||
|
thansk for that
cheers steve |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > session timeout help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|