Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Logout user on browser close
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrés Manikis  
View profile   Translate to Translated (View Original)
 More options May 31 2012, 10:48 am
From: Andrés Manikis <andresmani...@gmail.com>
Date: Thu, 31 May 2012 07:48:09 -0700 (PDT)
Local: Thurs, May 31 2012 10:48 am
Subject: Logout user on browser close

Hello, i'm trying to force logout after I close the browser but I don't
know how to do it.
If I close the browser without logging out and then I go back to the
application the user is still logged in.

Is there a way to configure Auth to logout users after I close the browser?

Thank you!
Andrés


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Hardy  
View profile  
 More options May 31 2012, 10:52 am
From: John Hardy <john.c.ha...@gmail.com>
Date: Thu, 31 May 2012 07:52:35 -0700
Local: Thurs, May 31 2012 10:52 am
Subject: Re: Logout user on browser close

Use a session cookie vs a cookie set to expire at a future date. This will
clear the cookie every time the browser closes
On May 31, 2012 7:48 AM, "Andrés Manikis" <andresmani...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrés Manikis  
View profile  
 More options May 31 2012, 11:02 am
From: Andrés Manikis <andresmani...@gmail.com>
Date: Thu, 31 May 2012 08:02:17 -0700 (PDT)
Local: Thurs, May 31 2012 11:02 am
Subject: Re: Logout user on browser close

Another thing to note.
In the cookbook explains that the user data is stored in a cookie. I don't
want that. I would like to store the user data in a session so after
closure the session expires and the user is not logged in anymore.

Thanks

El jueves, 31 de mayo de 2012 11:48:09 UTC-3, Andrés Manikis escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Hardy  
View profile   Translate to Translated (View Original)
 More options May 31 2012, 11:05 am
From: John Hardy <john.c.ha...@gmail.com>
Date: Thu, 31 May 2012 08:05:28 -0700
Local: Thurs, May 31 2012 11:05 am
Subject: Re: Logout user on browser close

PHP uses a browser cookie to store the visitors session id. The only other
way is to daisy chain the ID on the URL....... you don't want that trust me
:-)
On May 31, 2012 8:02 AM, "Andrés Manikis" <andresmani...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrés Manikis  
View profile  
 More options May 31 2012, 11:12 am
From: Andrés Manikis <andresmani...@gmail.com>
Date: Thu, 31 May 2012 08:12:00 -0700 (PDT)
Subject: Re: Logout user on browser close

"Use a session cookie vs a cookie set to expire at a future date. This will
clear the cookie every time the browser closes."

Could you give me an idea on how to do that?

Thank you!
Andrés


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AD7six  
View profile  
 More options May 31 2012, 11:51 am
From: AD7six <andydawso...@gmail.com>
Date: Thu, 31 May 2012 08:51:10 -0700 (PDT)
Local: Thurs, May 31 2012 11:51 am
Subject: Re: Logout user on browser close

On Thursday, 31 May 2012 17:02:17 UTC+2, Andrés Manikis wrote:

> Another thing to note.
> In the cookbook explains that the user data is stored in a cookie.

Your user data is not stored *in* a cookie - where is that stated?

> I don't want that. I would like to store the user data in a session so
> after closure the session expires and the user is not logged in anymore.

That's how it works.

AD


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrés Manikis  
View profile  
 More options May 31 2012, 3:41 pm
From: Andrés Manikis <andresmani...@gmail.com>
Date: Thu, 31 May 2012 12:41:39 -0700 (PDT)
Local: Thurs, May 31 2012 3:41 pm
Subject: Re: Logout user on browser close

I don't know if the data itself is stored in a cookie or in a session.
But what is stored in a cookie is some info for the login.
Anyway, do you know how to logout the user when I close the browser?

I suppose it's a very common feature of any web application.

Thank you!
Andrés

El jueves, 31 de mayo de 2012 12:51:10 UTC-3, AD7six escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Hardy  
View profile  
 More options May 31 2012, 3:48 pm
From: John Hardy <john.c.ha...@gmail.com>
Date: Thu, 31 May 2012 12:48:20 -0700
Local: Thurs, May 31 2012 3:48 pm
Subject: Re: Logout user on browser close

Set the session cookie timeout to "0" "Zero" in core.

http://en.wikipedia.org/wiki/HTTP_cookie#Session_cookie

Google: Very common application used by web developers.

On May 31, 2012, at 12:41 PM, Andrés Manikis wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrés Manikis  
View profile  
 More options May 31 2012, 4:19 pm
From: Andrés Manikis <andresmani...@gmail.com>
Date: Thu, 31 May 2012 13:19:53 -0700 (PDT)
Local: Thurs, May 31 2012 4:19 pm
Subject: Re: Logout user on browser close

Worked perfectly.

Thanks

Just for the record: I used Google but I didn't know there was a session
cookie and that I could set the timeout to zero.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »