TobesC Posted May 30, 2007 Share Posted May 30, 2007 im trying to make a search engine with a login using (much like craigslist). problem is - when i start a session, none of the pages are cached so the page expires after the user views a result, and cant get back to the results page. help??? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/53647-sessions-and-page-expiration/ Share on other sites More sharing options...
pocobueno1388 Posted May 30, 2007 Share Posted May 30, 2007 Are you putting session_start(); at the top of each page? Quote Link to comment https://forums.phpfreaks.com/topic/53647-sessions-and-page-expiration/#findComment-265187 Share on other sites More sharing options...
TobesC Posted May 31, 2007 Author Share Posted May 31, 2007 yea, the sessions work fine in terms of the password and being logged in. the problem is when the user views one of the results for a search and hits "back", all the results from the search are gone. i know it has something to do with the session_cache_limiter function (i think???) thanks Quote Link to comment https://forums.phpfreaks.com/topic/53647-sessions-and-page-expiration/#findComment-265355 Share on other sites More sharing options...
Fergusfer Posted May 31, 2007 Share Posted May 31, 2007 yea, the sessions work fine in terms of the password and being logged in. the problem is when the user views one of the results for a search and hits "back", all the results from the search are gone. i know it has something to do with the session_cache_limiter function (i think???) http://ca.php.net/manual/en/function.session-start.php#70033 Quote Link to comment https://forums.phpfreaks.com/topic/53647-sessions-and-page-expiration/#findComment-265366 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.