--- In [email protected], Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Website Managers > <[EMAIL PROTECTED]> writes > >You have most likely seen membership sites that redirect you to the > >login screen when you are inactive for a certain time period. The > >session times out and automatically loads the login page. I've searched > >all the session variables and even Google & Yahoo for it. > > > >The closest I came to it was the session_cache_expire setting, but I > >don't know how to see if the value is zero. Does anyone know how to do > >that other than creating another timer? > > > >Thanks > > > >Jim > > Usually, you are redirected after being inactive *when you try to change > page*. When changing page, if the session has closed (by itself), then > you are redirected. You seem to be implying that your visitors should > be redirected, even if the page does not change. I have never seen > this. > > But if that is what you want, could you have a redirect at the top of > the page? Like > <meta http-equiv="refresh" content="0;url=login.php"> > where the content="0; is set to something very high? > > No idea if that would work... <G> >
Thanks Pete, I had not thought of that and was looking into the seesion variables instead. Some sites like columbiahouse.com will return you to the login page after you're idle for x minutes and that's what I'm looking for. I searched through their page source but didn't see anything there either. The page refresh would worrk though, and easily implemented since I use a header include file on every page to check the member details. It just confuses me though because the session.gc_maxlifetime = 1440 in php.ini. That's only 24 minutes, but sometimes I don't get logged even it it sits on a page overnight. Most of the time though, most of our members need to log back in after anywhere between 24-45 minutes. With the redirect I can set it to 30 minutes, redirect to login, unset the current session and make them start fresh. Thanks for the idea. Jim Website Managers http://www.websitemanagers.net ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
