Skip to content

Tracking the time a user spends on the site more accurately #77

Description

@pckapps

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions