On Friday, September 5, 2003, at 04:15 PM, as...@0u... wrote:
> Hi list,
>
> I`ve got a formular with some text fields within a php-file (1.php).=20=
> Another php-file (2.php) is called
> by the form to evaluate the fields. Both php-files are protected with=20=
> the follwing line at the beginning:
>
> page_open(array("sess" =3D> "MEINE_SESSION", "auth" =3D> =
"MEINE_AUTH"));
>
> 1.php is loaded and the input is made. After the lifetime of the=20
> auth-class has expired, I send the data
> to 2.php by clicking the submit-button. 2.php even contains the=20
> page_open statement. After that,=A0the login
> dialog appears. That ist OK. After re-authentication, 2.php is loaded.=20=
> But now=A02.php is unable to get the
> data of the form from 1.php. Therefore I use=20
> $HTTP_POST_VARS["Textfeld"], but there is no data.
>
> The lifetime of the session-class is 0. That of the auth-class is 1=20
> minute.
>
> Does anybody hava any ideas?
>
> Thanks, Andi.
Hi Andi,
You can easily overcome this problem by making a few changes in your=20
MEINE_AUTH class. Here's what I've done in my Auth class.
In auth_loginform():
if(!is_array($login_post) and count($_POST)) {
$login_post =3D $_POST;
if(!$sess->is_registered("login_post")) =
$sess->register("login_post");
}
Then, in auth_validatelogin(), after a correct login has been validated:
global $sess, $login_post;
if(is_array($login_post)) {
$_POST =3D $login_post;
$sess->unregister("login_post");
}
Good luck,
Layne Weathers
|