forms authentication and cookies

P

Phil Townsend

I have an application which uses forms authentication. Once users log
in, if they close their browser, then they should have to log in again.
However, I cannot seem to make this happen unless I manually delete the
cookie. I know that I can reset the Expiration on the cookie, but cannot
figure out how to fire an event which causes this. Session_End does not
seem to work for this. What is the best way to accomplish this? Thanks!
 
S

Scott Allen

Hi Phil:

Are you invoking FormsAuthentication.RedirectFromLoginPage? If so, are
you specifying a value of false for the second parameter (persistent
cookie)?
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top