user still logged in after browser closed

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.

user still logged in after browser closed

Postby sticcino » Tue Jan 09, 2018 10:23 pm

Hi,

we just noticed, that if a user is logged in, and they close the browser and restart it that the session is still active and the user is still logged in ?

it appears the session is not destroyed when the browser is closed.
sticcino
 
Posts: 201
Joined: Sun Dec 30, 2012 11:55 pm

Re: user still logged in after browser closed

Postby arbei » Wed Jan 10, 2018 11:29 am

No, it won't. Have you enabled "remember me" when you log in?
arbei
 
Posts: 1499
Joined: Wed Sep 09, 2015 10:13 am

Re: user still logged in after browser closed

Postby sticcino » Thu Jan 11, 2018 2:47 am

i don't have that option even visible on the login screen.

I'll try clearing out my temp directory and cache
sticcino
 
Posts: 201
Joined: Sun Dec 30, 2012 11:55 pm

Re: user still logged in after browser closed

Postby mobhar » Fri Jan 19, 2018 4:45 pm

sticcino wrote:
> it appears the session is not destroyed when the browser is closed.

Indeed. That's why there is a EW_USER_PROFILE_SESSION_TIMEOUT constant in the generated "ewcfg*.php" file. You may simply adjust the value of this constant, so that for such case, the session will be destroyed after that timeout value is exceeded. Please correct me if I'm wrong.
mobhar
 
Posts: 4672
Joined: Wed Jun 05, 2013 2:11 pm

Re: user still logged in after browser closed

Postby sangnandar » Sun Jan 21, 2018 6:43 am

If you enabled "Remember me" (Security Tab -> Login Option) the SESSION is still there after browser closed.
The SESSION, then, destroyed after session timeout.
To adjust session timeout value:
Security Tab -> Advanced button -> User Login Options -> Login -> Login status timeout (minutes)
This is for concurrent login.

Session timeout is on:
Tools -> Advanced Settings -> Session timeout period (minutes)
You should also have to set session keep alive interval larger than 0. Refer to help file for more details.

These settings also goes to cookie. Try to clear your browser cookie if things didn't work as expected.
sangnandar
 
Posts: 296
Joined: Mon Sep 19, 2016 2:04 am


Return to General Discussion (PHPMaker)