Forms login and expired accounts !

P

PL

If I have a forms login with persistant cookies how can I verify the
account is not expired ?

I want to run a piece of code everytime they come in no matter if they
pass through the login or have a persistant login cookie.

Is this possible ?

Thank
PL.
 
C

Chris Rolon

The Application_AuthenticateRequest method is called with every request.
Check the account status there.
 
P

PL

Another issue I have is how to invalidate all persistant logins for
the member if the password is updated.

Obviously there is no problem on the computer/browser he is using when
changing the password, I just call FormsAuthentication.SignOut() however if
he also logged in on another computer he will still get in without entering the
new password.

The obvious solution would be to save the date and time the password was changed
and compare it with when the ticket was created however I can't seem to find a
way to get the time of creation ?

PL.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top