Forms authentication not returning to login page

  • Thread starter Thread starter BillGatesFan
  • Start date Start date
B

BillGatesFan

Forms authentication not returning to login page after my sessions
timeout. What could possibly be wrong? Thanks
 
Form authentication is by default based on cookie, so when cookies expires
it will redirect to the login page. You can set the timeout for forms
authentication cookie in config file. So it wont redirect after session
timeout. If you want that feature, then dont create forms authentication
cookie.
 
My forms authentication cookie is expiring but it is not returning me
to the login page. My timeout is set to 1
 
I figured it out. I had Persistcookie = true when it should have been
false, in my redirectfromloginpage call. When persistcookie = true it
ignores the timeout property in the forms section of the web.config
file.
 

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

Back
Top