R
Rob Douglass
Hi all,
I have a site that is compeletely restricted by form authentication.
In the case where a user's cookie expires and then they click on the
logout button on the site, the authetication process is forcing them
to login again so that they can log out.
I've been trying to use
"HttpContext.Current.User.Identity.IsAuthenticated" as the first piece
of code in the "Page_Load" routine, but the server is redirecting the
browser before it gets to it.
Does anyone know of a way to catch the browser before it redirects to
the login page?
My code is as follows:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Verify that user has not timed out.
If HttpContext.Current.User.Identity.IsAuthenticated = False
Then
Me.txtTimeout.Value = "true"
Me.lblLogoutMessage_LABEL.Text = "Cookie is gone."
Else
....
End if
End Sub
Thx,
Rob
I have a site that is compeletely restricted by form authentication.
In the case where a user's cookie expires and then they click on the
logout button on the site, the authetication process is forcing them
to login again so that they can log out.
I've been trying to use
"HttpContext.Current.User.Identity.IsAuthenticated" as the first piece
of code in the "Page_Load" routine, but the server is redirecting the
browser before it gets to it.
Does anyone know of a way to catch the browser before it redirects to
the login page?
My code is as follows:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Verify that user has not timed out.
If HttpContext.Current.User.Identity.IsAuthenticated = False
Then
Me.txtTimeout.Value = "true"
Me.lblLogoutMessage_LABEL.Text = "Cookie is gone."
Else
....
End if
End Sub
Thx,
Rob