Forms authentication not returning to login page

B

BillGatesFan

Forms authentication not returning to login page after my sessions
timeout. What could possibly be wrong? Thanks
 
S

Saravana

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.
 
B

BillGatesFan

My forms authentication cookie is expiring but it is not returning me
to the login page. My timeout is set to 1
 
B

Bill Gates Brother

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top