Comments (3)
I would probably keep a lastActivity (datetime)
in the user that would be updated on each of its action.
An active (bool)
sounds great.
And for the automatic deactivation, a CRON job is more suited IMO. (Maybe symfony has some helper for this ?)
A manual scan can of course also be implemented.
from antilope.
Yeah I made a mistake, lastConnect (datetime)
is no use here.
And with lastActivity (datetime)
, I can display on each user profile the famous : "Las time seen ... minutes ago" π
from antilope.
It seems like for this, I should create an event listener and listen to Kernel events.
There seems to be two possibilities:
- Listen to kernel.controller that is created just after the controller is choosen.
- Listen to kernel.terminate
This event is dispatched after the response has been sent (after the execution of the handle() method). Itβs useful to perform slow or complex tasks that donβt need to be completed to send the response (e.g. sending emails).
To checkout if the request is a isMasterRequest()
I like the idea of this post That add a isActiveNow()
method to the user and only update the database after a given time (2minutes in the example). This make sense if the user is a LEFT CLIC KILLER !!
Strategy 2 seems sweet to me. What do you think @n-peugnet ???
from antilope.
Related Issues (20)
- open shrable filtered results in map
- Parse sharables / users (+ questions) in texts
- Show instance parameters
- Set prefered locale per user
- show anonymous managers answers as anonymous
- allow or not an userclass to be selected as visibleBy
- internal Blog HOT 1
- admin: send mail to users HOT 1
- Validation rich text
- open sharable filtered list in the map HOT 1
- publication / drafts
- image gallery in sharables
- allow user to create sharable without contact info if they aven't set any
- moderators
- really disable sharable when no managers are activited
- categories HOT 1
- add the possibility to let a message while a sharable is deactivated
- add price in sharable parameters
- add ability to upload files associated to sharable
- associate antilope to a private bittorrent tracker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antilope.