Re: How to handle the Browser Close ?

2009-03-31 Thread Briel

Hi.
You don't really have to log the user out, unless you are making
something with very sensitive material. A lot of sites wont log you
out unless you haven't been at their site for some time.

One thing you could do, would be to log users out that haven't
been active for x minutes/hours, but you might log users out
that are still somewhat active on your site, but are gone for lunch
or are googling or just reading the same page for a long time

~Jakob

On 1 Apr., 08:26, veeravendhan  wrote:
> Say a user is logged in to the system,  If he closes the browser how
> will I handle the Logout for that user ? Any idea ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to handle the Browser Close ?

2009-04-01 Thread Jeff FW

http://docs.djangoproject.com/en/dev/topics/http/sessions/#session-expire-at-browser-close

On Apr 1, 2:26 am, veeravendhan  wrote:
> Say a user is logged in to the system,  If he closes the browser how
> will I handle the Logout for that user ? Any idea ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to handle the Browser Close ?

2009-05-08 Thread veeravendhan

Duplicate login should not done is my requirement. with the username
one login shoud be happend, if another user is trying to login in the
system, he should be informed this login is currently in use.

Thanks
Veera
On Apr 1, 11:43 am, Briel  wrote:
> Hi.
> You don't really have to log the user out, unless you are making
> something with very sensitive material. A lot of sites wont log you
> out unless you haven't been at their site for some time.
>
> One thing you could do, would be to log users out that haven't
> been active for x minutes/hours, but you might log users out
> that are still somewhat active on your site, but are gone for lunch
> or are googling or just reading the same page for a long time
>
> ~Jakob
>
> On 1 Apr., 08:26, veeravendhan  wrote:
>
>
>
> > Say a user is logged in to the system,  If he closes the browser how
> > will I handle the Logout for that user ? Any idea ??- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to handle the Browser Close ?

2009-05-08 Thread Masklinn

On 8 May 2009, at 16:35 , veeravendhan wrote:
> Duplicate login should not done is my requirement. with the username
> one login shoud be happend, if another user is trying to login in the
> system, he should be informed this login is currently in use.
>
> Thanks
> Veera

This doesn't really make any sense from an HTTP/web standpoint. HTTP  
is inherently stateless and disconnected, and you're asking for a  
feature that only makes sense in a stateful and connected protocol.  
Sessions can somewhat reintroduce state, but not connection.

If you want that, you'll need either ugly hackeries based on  
javascript events, or a real, heavy client. Either way you haven't  
explained why you'd have such an utterly bizarre requirement, and I  
don't quite see its point. Why forbid a user from browsing the same  
site in two different tabs?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---