Re: [PHP] Sessions and Opera

2002-04-10 Thread Tom Rogers

Hi
Some versions of opera will cache the first login page so if you submit to 
the same page it will still show the login dialog. The way I got around it 
was to add "?" to the post url .. ie action="index.php?"  that fooled it to 
reload the page correctly.
Tom

At 10:22 PM 10/04/2002, Steve Fitzgerald wrote:
>While testing a login page with different browsers I noticed that Opera
>(vers5.02)
>didn't allow me access to the site despite using the correct input, so I
>wrote the
>following pages to test Opera's performance. It seems that Opera doesn't
>
>pass registered variables to the new page. IE & NS both print the output
>
>as expected, but in Opera all variables are empty.
>Has anyone got any thoughts/solutions/experiences?
>
>regards
>Steve
>
>--
>## login page
>
>   $password = "letmein";
>   if (isset($input)){
>   if ($input == $password){
>   $auth = 1;
>   session_start();
>   session_register(enter,input,password,auth);
>   header("Location: 2.php");
>   exit;
>   }
>   }
>?>
>
> method="POST">
>Enter password: 
>
>
>
>   print "The value of \$enter is \"$enter\"";
>   print "The value of \$input is \"$input\"";
>   print "The value of \$password is \"$password\"";
>   print "The value of \$auth is \"$auth\"";
>?>
>
>--
>## 2.php
>
>   session_start();
>
>   print "The value of \$enter is \"$enter\""; // empty
>   print "The value of \$input is \"$input\""; // should print
>'letmein'
>   print "The value of \$password is \"$password\""; // should print
>'letmein'
>   print "The value of \$auth is \"$auth\""; // should print '1'
>?>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sessions and Opera

2002-04-10 Thread Steve Fitzgerald

While testing a login page with different browsers I noticed that Opera
(vers5.02)
didn't allow me access to the site despite using the correct input, so I
wrote the
following pages to test Opera's performance. It seems that Opera doesn't

pass registered variables to the new page. IE & NS both print the output

as expected, but in Opera all variables are empty.
Has anyone got any thoughts/solutions/experiences?

regards
Steve

--
## login page



 method="POST">
Enter password: 



";
  print "The value of \$input is \"$input\"";
  print "The value of \$password is \"$password\"";
  print "The value of \$auth is \"$auth\"";
?>

--
## 2.php

"; // empty
  print "The value of \$input is \"$input\""; // should print
'letmein'
  print "The value of \$password is \"$password\""; // should print
'letmein'
  print "The value of \$auth is \"$auth\""; // should print '1'
?>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php