Skip to content
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

Track when session created/first logged in? #66

Open
dwasyl opened this issue Jan 16, 2017 · 2 comments
Open

Track when session created/first logged in? #66

dwasyl opened this issue Jan 16, 2017 · 2 comments
Labels

Comments

@dwasyl
Copy link

dwasyl commented Jan 16, 2017

It doesn't seem to exist in the model currently, but I've been building a system and think it would be helpful to the user to be able to display when they created a particular session as part of the information displayed? I've seen this functionality on a few

Not sure if this would be useful to others, but it looks like it would just take the addition of a created datetime field on the custom session model.

@Bouke
Copy link
Collaborator

Bouke commented Jan 17, 2017

Hi @dwasyl! That certainly looks like a nice feature and probably rather easy to add. However, I'm wondering whether it would be of interest to other users of this package as well. Is this also a feature that "big" website are using? On other websites I mostly only see something like "last activity", not when the session started.

@Bouke Bouke added the idea label Jan 17, 2017
@dwasyl
Copy link
Author

dwasyl commented Jan 18, 2017

To be honest @Bouke I took the idea from Github's session management screen. They show both a session started/logged in date an the last accessed date. For the addition of an extra created field it should be pretty low maintenance.

As a side note, and I can make this into separate issue, but I had some problems with the user agent identification code and ended up integrating user_agent directly into my application. Might be better to integrate it into django-user-sessions for improved user agent identification?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants