[SOLVED] FrontEndUsers - Session remains open when closing browser

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

[SOLVED] FrontEndUsers - Session remains open when closing browser

Post by richbothe »

I have CMSMS 1.0.6 with FEU 1.2.0 installed.  Everything seems to be working out really good so far, but with one exception.

When a user is logged in and they close their browser instead of logging out, then reopen their browser and log back in the message "This user is already logged in" appears on the FEU Login form, but they no longer have access to the custom content or logout form.

Shouldn't closing the browser end the sessions?

Thanks,
Rich
Last edited by richbothe on Wed Jan 07, 2009 11:15 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FrontEndUsers - Session remains open when closing browser

Post by calguy1000 »

FEU keeps the sessionid in the database until a timeout period occurs... or the user logs out.  there's no way of notifying the website that somebody has closed the browser window, hence the reason for the timeout.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: FrontEndUsers - Session remains open when closing browser

Post by richbothe »

Ah that makes sense!  Where can I modify the timeout setting?  Also, is there a way I can add an alert to notify users that they must logout of the site rather than just closing their browser?  I think I can do this using Javascript, but I'm a bit of a novice with JS.


Rich
Pierre M.

Re: FrontEndUsers - Session remains open when closing browser

Post by Pierre M. »

Hello,

if a "standard" PHP session is used, you can tune the expiration parameter in the PHP settings.
If it is hardcoded somewhere in FEU, you have to dig into the code.
I don't know which one applies (hope "standard") and I can be wrong.

Pierre M.
jimeu
Forum Members
Forum Members
Posts: 17
Joined: Mon Mar 10, 2008 11:49 pm

Re: FrontEndUsers - Session remains open when closing browser

Post by jimeu »

I am having this issue as well,

so, if the user is already logged in, why not allow to display the loggedin content ?

and instead of displaying the "this user is already loggin in", what would be a code, to signout, and display the login prompts for them to re-login ?

jimeu
CMS 1.2.3
Pierre M.

Re: FrontEndUsers - Session remains open when closing browser

Post by Pierre M. »

Hello,
jimeu wrote: and instead of displaying the "this user is already loggin in", what would be a code, to signout, and display the login prompts for them to re-login ?
Why do you think there is no such "feature" on Gmail, Yahoo, eBay...? Wouldn't this open the door to a denial of service attack ?

Pierre M.
szetlan
Forum Members
Forum Members
Posts: 13
Joined: Tue Feb 24, 2009 10:05 pm

Re: [SOLVED] FrontEndUsers - Session remains open when closing browser

Post by szetlan »

Actually, this is a BIG problem if you have a user that closes their browser, and then tries to go back to the site.  The site thinks they've already logged in because the record exists in the loggedin table, but the interface doesn't have the right session -- so the user attempts to log in, and instead of creating a new session ID the system complains you're already logged in.

This can happen if the user closes their browser, or if they sign in at one location and then move to another one.  It also happens if users share their credentials with another person, and you have two people trying to log in from separate areas at roughly the same time.

Is there a way to enable multiple simultaneous logins for a user?
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: [SOLVED] FrontEndUsers - Session remains open when closing browser

Post by jmcgin51 »

szetlan wrote: Is there a way to enable multiple simultaneous logins for a user?
Yes.
Post Reply

Return to “Modules/Add-Ons”