LastActivityDate in aspnet_Users Not Updating Correctly

  • Thread starter Thread starter Dan Sikorsky
  • Start date Start date
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?
 
I guess you can create a custom membership provider, derive from the
SqlMembershipProvider class and override the ValidateUser Method.
 
Back
Top