Session End Help...

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
 
A

Andrew de la Harpe

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top