django-user-sessions icon indicating copy to clipboard operation
django-user-sessions copied to clipboard

How would one go about measuring session length?

Open mabdullahabid opened this issue 4 years ago • 1 comments

There seems to be multiple ways to do it so I'd like to know what everyone thinks.

mabdullahabid avatar Jan 25 '21 05:01 mabdullahabid

I'd added that functionality by adding a created_at field to the Session model (pushed as PR #75 but I couldn't get it to pass the tests due to some DB issues. It was the only way to measure session length I could come up with, and useful for being able to tell when a session was first created. What other ways would you do this? I haven't had time to rewrite it without the auto_add_now field since I've just been using my older fork.

dwasyl avatar May 17 '21 07:05 dwasyl