RE: [PHP] GET / POST strange error
| From: | Johnson, Kirk | Date: | Fri, 24 Aug 2001 15:11:25 +0000 |
| Subject: | RE: [PHP] GET / POST strange error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64260@lists.php.net to get a copy of this message | ||
I have seen this behavior when the user had a bookmark to the page with a
session ID in the bookmark URL. Just a thought.
Kirk
> -----Original Message-----
> From: Mike [mailto:mike-nospam@blueroot.net]
> Sent: Friday, August 24, 2001 8:17 AM
> To: php-general@lists.php.net
> Subject: [PHP] GET / POST strange error
>
>
> i have written a login page for a members area on my site -
> the code is as
> follows...
>
> <?
> require_once("backend.php");
>
> if (!$userid || !$password) {
>
> include("loginform.php");
> exit;
> }
> else {
> $login = $authlib->login($userid, $password);
>
> if ($login != 2) {
> $error = $login;
> include("loginform.php");
> exit;
> }
> else {
> include("index.php");
> }
> }
> ?>
>
> it uses authlib to authorise the user and then include a
> different pasge if
> they are logged in...fairly simple so far..
>
> approx 50% of the time the user cannot log in straight
> away... the page just
> reloads and you get the blank entry fields again.
>
> The logs show the page being posted and then get
>
> 213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] "POST
> /cand/members/login.php
> HTTP/1.1" 302 1792
> 213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] "GET
> /cand/members/login.php
> HTTP/1.1" 200 1094
>
> i am using apache 1.3.19 and php 4.0.4 on redhat 7
>
> I have had this problem reported on another form page as well...