Frontend Users Session Expiration

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
awaegel

Frontend Users Session Expiration

Post by awaegel »

Hello,

I'm happily using Frontend Users but I can't seem to keep my users logged in. Whenever anyone logs in to the private area of my site, they get a cookie with no expiration date which therefore expires at the end of their session. So they have to log in much more frequently than I would like - i would prefer to keep them logged in for a week or so.

Is this a bug or am I missing something? I have changed the session length param in the Front End Users admin but to no avail.

Thanks,
- Andrew
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Frontend Users Session Expiration

Post by calguy1000 »

The sessions in feusers are based on the session_id, so therefore when the session_id changes, by restarting your browser, you have to log in again.

This works the same as the admin side of things.

It's definately doable the other way, but I never really thought about it this way.  Maybe you could post this as a feature request to the forge.

Thanks.
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.
awaegel

Re: Frontend Users Session Expiration

Post by awaegel »

I more or less got around this by increasing the overall session length for CMS Made Simple. In include.php I added this:

@ini_set('session.cookie_lifetime', 604800);


...which seems fine to me; I don't mind the admin session staying open for longer. Ideally it seems to me that Front End Users would have its own cookie with its own expiration time but I imagine that would add a whole other layer of complexity.

Thanks,
- Andrew
Locked

Return to “Modules/Add-Ons”