will try that, but can anybody verify this also ?
Regards,
Dirk
Original-Nachricht
Datum: Wed, 02 May 2007 19:29:58 +0200
Von: [EMAIL PROTECTED]
An: django-users@googlegroups.com
Betreff: special session-time usecase
Hi all,
I use django.contrib.sessions
Ok, I just read into middleware a bit more and I see the possibilities
now. I'm going to attempt to write this and I'll post the results
once I'm done. This seems like something people might want at their
disposal. Thanks for the assistance.
ringemup wrote:
> On May 31, 3:14 pm, tyman26 <[EMA
On May 31, 3:14 pm, tyman26 <[EMAIL PROTECTED]> wrote:
> That makes a lot more sense to me now, thanks for the explanation!
> The only thing that worries me is repetition. It seems like it would
> get very repetitive implementing this inside every view in the entire
> project. Is there somewhe
That makes a lot more sense to me now, thanks for the explanation!
The only thing that worries me is repetition. It seems like it would
get very repetitive implementing this inside every view in the entire
project. Is there somewhere else you can check everytime a request is
made?
On May 31, 1
> I see what you are saying, but I want the user to be automatically
> logged out after a period of inactivity for security purposes.
Yes, this accomplishes that.
> 1) Do you mean I would check the last time they saved and then
> compare it with a time limit everytime they alter a session?
Yes
I see what you are saying, but I want the user to be automatically
logged out after a period of inactivity for security purposes.
1) Do you mean I would check the last time they saved and then
compare it with a time limit everytime they alter a session?
2) If the time limit has been surpassed,
Why not store a parameter in the session indicating when it was last
saved. On each page load, first check that parameter and if it's too
long ago, discard the session and begin a new one. Then update the
parameter with the current time.
You may need middleware to accomplish this, but it ought
I also need to implement this type of feature. Did you find anything
on this?
On May 2, 12:29 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I use django.contrib.sessions with SESSION_EXPIRE_AT_BROWSER_CLOSE=True.
>
> I need a way toexpireasessionon certain amount of time of inactivity in the
> bro
Hi all,
I use django.contrib.sessions with SESSION_EXPIRE_AT_BROWSER_CLOSE=True.
I need a way to expire a session on certain amount of time of inactivity in the
browser.
Each new request to django should retrigger the expire time.
Is there a possibility to modifiy the session module or build
9 matches
Mail list logo