LastActivityDate in aspnet_Users Not Updating Correctly

D

Dan Sikorsky

When a user has clicked the Remember Me checkbox and the cookie
automatically logs him in every time he comes back to the website, the
aspnet_Users.LastActivityDate should be updated to the current date and
time. This is not happening.

It seems that the LastActivityDate is updated only when the user logs in
with a valid userid and password.

How can I get the LastActivityDate to be updated when cookies are used to
authenicate?
 
S

Sheng Jiang[MVP]

I guess you can create a custom membership provider, derive from the
SqlMembershipProvider class and override the ValidateUser Method.
 

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,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top