Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
On all ASP pages in your web site you need to add something like
'--------------------------------------------------
' Adds a refresh to the page just after the length of the session
' so after the session expires it goes to the login page
' Adds anti-caching headers
' Checks a session variable and redirects if empty
'--------------------------------------------------
Response.AddHeader "Refresh", CStr(CInt(Session.Timeout + 1) * 60) & "; URL=Login.asp"
Response.AddHeader "cache-control", "private"
Response.AddHeader "Pragma","No-Cache"
Response.Buffer = TRUE
Response.Expires = 0
Response.ExpiresAbsolute = 0
If (Session("Authenticated")="") Then
Response.Redirect("login.asp")
End If
'--------------------------------------------------
' Rest of your code goes after this
'--------------------------------------------------
On your logout page all you should need to do is set the following and redirect as needed:
Session("Authenticated") = ""