On Friday, September 5, 2003, at 11:34 AM, Layne Weathers wrote:
> You can easily overcome this problem by making a few changes in your
> 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 = $_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 = $login_post;
> $sess->unregister("login_post");
> }
Stupid me, I left off the global declarations from auth_loginform().
Use the same global $sess, $login_post; as in auth_validatelogin above.
Layne Weathers
|