is there a way for amember to reload a page if a session times out or a JS error box to popup saying sessions has expired. or even a way for a window to popup saying would you like to stay logged in. how can we prolong the session cause I also have a keep logged in forever but I do not think that will work for users currently. I just want to kow how we can extend someone login in our memebership if possible where do I look to adjust? and how
To increase the amember timeout time: In the amember/config.inc.php Add this line to the top (90 is minutes): ini_set('session.cookie_time', 90); David
"what if the the time out accurs, what code can we add to auto redirect them to the login. For example, they are idle on a page too long, and they are really logged out. What is best way to catch that and redirect them. Is there something that can redirect them instantly to login once session is timed out? We need to not have the user have access to that page, and immediatly redirected, if the session variable is expired.
no solution for this? I want to refresh the page and log the person out if their sessions times out because users get sql errors if their sessions times out
You can use this code at the top of your scripts: Code: session_start(); if(!$_SESSION[_amember_id]){ header("Location: /amember/login.php"); exit; }
This hasn't worked for me... set the timeout to 6000 minutes and amember still logs out after about 3 hours. Can't edit php.ini, I'm on a shared server. How else can I increase the timeout time? Thanks
@quirk: on some shared hosts they allow you to override the default php.ini settings by placing one locally in the domain root or application root folder.