Jump to content


Photo

session question


  • Please log in to reply
5 replies to this topic

#1 dildolito

dildolito
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 09 October 2006 - 06:28 PM

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


#2 akrytus

akrytus
  • Members
  • PipPipPip
  • Advanced Member
  • 70 posts

Posted 09 October 2006 - 06:30 PM

Why not after ending the session you just refresh the page to where you want them to go using a meta tag?

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 09 October 2006 - 06:30 PM

Do you run that code when defining the session variable or at every page load?

#4 dildolito

dildolito
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 09 October 2006 - 06:40 PM

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


#5 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 09 October 2006 - 06:45 PM

Try session_cache_limiter('none') or session_cache_limiter('nocache') on log-off.php

#6 dildolito

dildolito
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 09 October 2006 - 06:52 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users