Fwd: special session-time usecase

2007-06-17 Thread dummy
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

Re: special session-time usecase

2007-05-31 Thread tyman26
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

Re: special session-time usecase

2007-05-31 Thread ringemup
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

Re: special session-time usecase

2007-05-31 Thread tyman26
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

Re: special session-time usecase

2007-05-31 Thread ringemup
> 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

Re: special session-time usecase

2007-05-31 Thread tyman26
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,

Re: special session-time usecase

2007-05-31 Thread ringemup
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

Re: special session-time usecase

2007-05-31 Thread tyman26
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

special session-time usecase

2007-05-02 Thread dummy
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