[phplib] Default-Authentication and the Back-Button From: Philip Hofstetter (pilif <email protected>)
Date: 08/01/00

Hi all,

I have a problem which should be quite common and for which I currentely
cannot see a clean solution. Possibly, someone of you has already solved
this:

My Application uses Default-Authentication and provides the user a
Login-Link on all the pages. This Link refers to the same page with the
parameter ?dologin=1 appended. In the code, I have the following
statement:

$auth->login_if($dologin == "1");

Now to the problem: If the user does not want to log in and does not use
the provided cancel-Button but the back-button of the browser, every
further click on the page that is protected by the
default-authentication, will again ask the user for login. This does not
make sense since he/she used the back-button because she does not really
want to login.

Is there a way to get around this problem without using cookies and
$auth->preauth?

Many thanks!

Pilif

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>