Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix_online_status' into fix_onli…
Browse files Browse the repository at this point in the history
…ne_status
  • Loading branch information
Maria Mafalda Fernando committed May 9, 2019
2 parents d15ccd0 + 4eb4857 commit e72dcf9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/online_status_middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@

This middleware keeps track of which users are online, it is entirely cache based so no database/model queries are required.

The basic functionality of the middleware is that it keeps track of all logged in users (that are not anonymous), and stores this list in the cache. users that have been offline or inactive for a fixed amount of time are marked as idle, and after a seperate fixed amount of time they are then removed from the list and considered offline. *This can be seen in the `status.py` file within the `django-online-status` directory*

There are couple of template tags to access this information to help make use of this functionality.

Also, this middleware contains a couple of view/urls by default, the only one that should exist is the `/test` url as one of the others lists every single user currently online for everyone to see which may pose a security risk, and the other is an example which probably shouldn't exist in a production enviroment, if these are present in your project (or are not ignored) please make sure they don't end up in production.
The basic functionality of the middleware is that it keeps track of all logged in users (that are not anonymous), and stores this list in the cache. Users that don't perform an action after a fixed amount of time are removed from the list of online users and thus considered offline. *This can be seen in the `status.py` file within the `django-online-status` directory*

0 comments on commit e72dcf9

Please sign in to comment.