Skip to content

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

@pckapps

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?

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