Re: Re: Sessions and Opera
| From: | Tomy Wagner | Date: | Wed, 10 Apr 2002 13:41:21 +0000 |
| Subject: | Re: Re: Sessions and Opera | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92386@lists.php.net to get a copy of this message | ||
and btw the browsers dont save the registered vars they are stored on the
server side... :) the browser only stores a cookie containing the session id
...
Tomy Wagner
----- Original Message -----
From: "Steve Fitzgerald" <oneeightone@netscape.net>
To: <php-general@lists.php.net>
Sent: Wednesday, April 10, 2002 2:38 PM
Subject: [PHP] Re: Sessions and Opera
> Cookies it was. Thanks
>
> Julio Nobrega Trabalhando wrote:
>
> > Cookies disabled? Or cache? Have you tried a 'fresh' Opera install or
a
> > newer version?
> >
> > --
> >
> > Julio Nobrega.
> >
> > Um dia eu chego lá:
> > http://sourceforge.net/projects/toca
> >
> > Ajudei? Salvei? Que tal um presentinho?
> > http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884åIARH±ö
> > C¾Z¦7™
> >
> > "Steve Fitzgerald" <oneeightone@netscape.net> wrote in message
> > news:3CB42E84.B72CBF1B@netscape.net...
> > > 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
> > >
> > > <?php
> > > $password = "letmein";
> > > if (isset($input)){
> > > if ($input == $password){
> > > $auth = 1;
> > > session_start();
> > > session_register(enter,input,password,auth);
> > > header("Location: 2.php");
> > > exit;
> > > }
> > > }
> > > ?>
> > > <body>
> > > <form action=<?php echo "$PHP_SELF" ?> method="POST">
> > > Enter password: <input type="text" name="input">
> > > <br><input type="submit">
> > > </form>
> > >
> > > <?php
> > > print "The value of \$enter is \"$enter\"<br>";
> > > print "The value of \$input is \"$input\"<br>";
> > > print "The value of \$password is \"$password\"<br>";
> > > print "The value of \$auth is \"$auth\"<br>";
> > > ?>
> > >
> > > --------------------------------------------------------------
> > > ## 2.php
> > >
> > > <?php
> > > session_start();
> > >
> > > print "The value of \$enter is \"$enter\"<br>"; // empty
> > > print "The value of \$input is \"$input\"<br>"; // should
> > > print
> > > 'letmein'
> > > print "The value of \$password is \"$password\"<br>"; //
> > > should
print
> > > 'letmein'
> > > print "The value of \$auth is \"$auth\"<br>"; // should
> > > print '1'
> > > ?>
> > >
> > >
> > >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>