-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking the time a user spends on the site more accurately #77
Comments
Is it possible you could adapt your custom middleware to work on the response? |
Won't be ideal to change my custom middleware. I've placed Alternatively, is there something else I can do so that the time on the site is more accurate? Currently sessions are set to expire after 2 weeks, so if a user doesn't log out it looks like they are always on the site |
Do a check to make sure the user is actually active, if they haven't left a certain page or anything, you can log them out. |
Oh...nevermind, it was last year that this was posted lol my bad, didntmean to necrobump |
Why should VisitorTrackingMiddleware be before django.contrib.sessions.middleware.SessionMiddleware?
I have custom middleware that logs a user out after 1 hour. I want to run this before VisitorTrackingMiddleware otherwise it greatly overstates the time a user spends on the site.
Or is there another way to be more accurate in the time a user spends on the site?
The text was updated successfully, but these errors were encountered: