Hi,
>Just when I thought my use of sessions was successful, I discovered that if
>the php script depends on a variable propagated to it via sessions I have
>this trouble: If I do a 'View Frame Source' on the window, or do a 'Back',
>then a 'Forward' on my browser, I get this message instead of my source
>code or expected window content:
>
><TITLE>Missing Post reply data</TITLE>
><H1>Data Missing</H1>
>This document resulted from a POST operation and has expired from the
>cache. If you wish you can repost the form data to recreate the document by
>pressing the <b>reload</b> button.
If you have to press "next" or "continue" or whatever your button is called
to get from page to page, then this is correct.
>This means that my use of 'Back' is killed, and that is not good. This is
>avoided by propagating my variable via a hidden form input instead of
>declaring a 'session_start()' on that window. Unfortunately, this cannot
>always be done for the reasons given in ch 8 of Beginning PHP4.
I haven't read that book. Why can't you use session_start() for each page?
----------------------
Chris Smith
http://www.squiz.net/