Jump to content

Archived

This topic is now archived and is closed to further replies.

dildolito

session question

Recommended Posts

i am using session_cache_limiter('private') in order for the "back" button to work.

However

I have been trying to get the following effect:

if clicking on the 'back' button after logging off (session_destroy + session_unset)
i dont want the user to get the cached page...


is it possible?

Thanks

Owen

Share this post


Link to post
Share on other sites
Why not after ending the session you just refresh the page to where you want them to go using a meta tag?

Share this post


Link to post
Share on other sites
Do you run that code when defining the session variable or at every page load?

Share this post


Link to post
Share on other sites
akrytus - if i refresh the page to were i want the user to go and instead of using the "back" button he will put the last page's url, then the cached paged will show again. am i right?

danilo - every page load had the session_cache_limiter. the logg-off code is in the log-off.php

Share this post


Link to post
Share on other sites
Try [tt]session_cache_limiter('none')[/tt] or [tt]session_cache_limiter('nocache')[/tt] on log-off.php

Share this post


Link to post
Share on other sites
the session_cache_limiter is per page. Putting it in the log-off.php will achieves nothing since the last page has been cached already

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.