[development] Auto logout when users close browser.

Peter Droogmans Peter at attiks.com
Fri Jul 6 10:20:23 UTC 2012


Hi,

Check your settings.php file, drupal is setting the cookie lifetime as well using ini_set<http://php.net/ini_set>('session.cookie_lifetime', 2000000);

Cheers
Peter Droogmans


From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of Nam PHAM
Sent: vrijdag 6 juli 2012 12:17
To: development at drupal.org
Subject: Re: [development] Auto logout when users close browser.

Hello Lee Rowlands,

I have added two lines into .htaccess file but it doesn't work.

"php_value session.cookie_lifetime 0
php_value session.gc_maxlifetime 0"

Could you give me some ideas?
thank you

On Fri, Jul 6, 2012 at 4:39 PM, Nam PHAM <nampham at mbm.vn<mailto:nampham at mbm.vn>> wrote:
Thank you for your quick response.

I will try as you said and let you know the result later.

On Fri, Jul 6, 2012 at 4:35 PM, Lee Rowlands <lee.rowlands at previousnext.com.au<mailto:lee.rowlands at previousnext.com.au>> wrote:
edit the session.cookie_lifetime in .htaccess


On Friday, 6 July 2012, Nam PHAM <nampham at mbm.vn<mailto:nampham at mbm.vn>> wrote:
> Hello everybody,
>
> I have a problem with drupal 6.
> I want users to log out automatically, after users close the Tab of browser, or close browser.
> At the moment, when users close browser and then open browser again, they still logged in.
> I have try by edit 'session.cookie_lifetime' in 'settings.php', but it doesn't work.
> Thanks in advance for any ideas.
> --
> Nam Pham
> Phone: (+84) 932 830 330
> Email: + nampham at mbm.vn<mailto:nampham at mbm.vn>
>            + allstarsmen at gmail.com<mailto:allstarsmen at gmail.com>
> Skype: nampham-mbm
> Yahoo: allstars_men
>



--
Nam Pham
Phone: (+84) 932 830 330
Email: + nampham at mbm.vn<mailto:nampham at mbm.vn>
           + allstarsmen at gmail.com<mailto:allstarsmen at gmail.com>
Skype: nampham-mbm
Yahoo: allstars_men




--
Nam Pham
Phone: (+84) 932 830 330
Email: + nampham at mbm.vn<mailto:nampham at mbm.vn>
           + allstarsmen at gmail.com<mailto:allstarsmen at gmail.com>
Skype: nampham-mbm
Yahoo: allstars_men

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20120706/4ccd6157/attachment-0001.html 


More information about the development mailing list