[PHPLIB] cannot use back button/resize window after login From: mail <email protected>
Date: 11/10/99

Hi, this topic was on the list before but without any
working solution. Any ideas?
On other sites there are no such problems, so there must be
a way to make it work.

After I succesfully logged in, when I use my browsers back
button it says:
* Communicator 4.7: Data Missing
  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
  reload button.
* IE 5.0: similar message (I use the german version).
With Communicator it is even worse: If I just resize the
window it tries to load the page again (and fails
because "Data Missing").

Now the form data really isn't needed in subsequent
accesses of the page (I am already logged in), but how
should the browser know?

I tried to achieve this by coding a reload after an succesful login:
auth.inc:
  if ( $uid = $this->auth_validatelogin() ) {
     header("Location: http://".$GLOBALS["HTTP_HOST"].$GLOBALS["sess"]->self_url());

This convinces IE 5.0 that the page does not result from a "POST" operation. When using the back button it just displays the page I originally intended to access.

But this fails with Communicator: First it does not simply reload the page but displays the text
"Found - The document has moved _here_."
With _here_ linked to the very same URL :-)
Only after clicking on _here_ it displays the page data and still when using the back button it wants to post the form data again...

Phuuu .... Help!!!

Stephen

Oh yes, if it matters: baselib 7.2

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.