RE: [PHP] GET / POST strange error

2001-08-24 Thread Johnson, Kirk

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:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 8:17 AM
> To: [EMAIL PROTECTED]
> 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...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] GET / POST strange error

2001-08-24 Thread Mike

i have written a login page for a members area on my site - the code is as
follows...

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...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]