FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Session Cache
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Session Cache [message #169387 is a reply to message #169384] Thu, 09 September 2010 06:59 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 09/09/2010 5:24, GarryJones escribió/wrote:
> If a user has missed something when they preview a form I want to
> return them with the back button or the cancel button to the previous
> page. Msie gives me the page expired error and firefox gives me a
> button to reload. But then of course all the entered information is
> gone...
>
> Pages are
> page1 (the form)
> page 2 (preview page)
> page 3 (confirmation page)
>
> I googled around and found this
>
> session_cache_limiter(private_no_expire);
>
> With that at the top of each page it works but then I realised that it
> might be a good thing to restict the length of time they can do this.
>
> I googled on found something else so now I have put 3 lines of code at
> the start of each page.
>
> session_cache_limiter('public');
> session_cache_expire (1);
> session_start();
>
> But the user can still go back and forth even after the one minute
> deadline.
>
> As usual I need help with the syntax, how to I flash up the page
> expired error if a user clicks back say in 15-20 minutes?

How do you want to recover previous form values? Saving them into a
session variable or leveraging the browser cache? You are mixing
directives for both purposes.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Not understanding HTML form
Next Topic: PHP variables eg. $_FILES
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 17:07:20 GMT 2024

Total time taken to generate the page: 0.05456 seconds