Project

General

Profile

Actions

Feature #2820

closed

When logging in via an autologin cookie the user's last_login_on should be updated

Added by Eric Davis almost 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Accounts / authentication
Target version:
Start date:
2009-02-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

When a user logs in the User.last_login_on field is updated to the current time. This is correct.

When a user logs in with an autologin cookie though, User.last_login_on isn't updated until their cookie expires. This makes it difficult to see which users have been active recently.

A few ideas for this would be:

  • Update User.last_login_on each time a user "logs in" with the autologin cookie (e.g. every request)
  • Add a new User field to track when a user was active and populate that with the time of the last request.
  • A better idea I haven't thought of yet....

I'm open to alternative suggestions.

(This was prompted by a issue with my System Notification plugin: https://projects.littlestreamsoftware.com/issues/2146)


Related issues

Has duplicate Redmine - Defect #3679: When a user is accessing by means of an stored cookie, "Last connection" time is not updated.Closed2009-07-27

Actions
Actions #1

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from New to Closed
  • Target version set to 0.9.0
  • Resolution set to Fixed

Fixed in r2524. User's last_login_on is now updated when the user starts a new session using autologin cookie, not on each request.

Actions

Also available in: Atom PDF