Session End Help...

  • Thread starter Thread starter Powervision
  • Start date Start date
P

Powervision

Hi everyoone,
I am just trying to find a way to log the user off ( forms
auth. ) And redirect them to the log in page. This is what
I tried in the session_end event:

FormsAuthentication.SignOut()
Server.Transfer("Logon.aspx")

It seems to fire the sign out but never transfers me. Any
ideas? AS well I don't want them to be able to go back to
the page they logged off from...is that possible?

Thanks Everyone!

Powervision
 
Here's a better way.
Set an expiry time on the authentication cookie.
You can make that time fixed or sliding( same as session timeout).
That way, their cookie expires when you want it to and they are
automatically redirected to the login page.

A
 
Back
Top