Re: Re: Session problems
| From: | LITS | Date: | Thu, 19 Jul 2001 17:30:49 +0000 |
| Subject: | Re: Re: Session problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60689@lists.php.net to get a copy of this message | ||
At home I am using Win98, BadBlue Server, PHP 4.0.5 and 4.0.6. Here
sessions (same example script I posted earlier) seem to work 100%. Must be
a config setting at work.
BK
Rudolf Visagie <Rudolf@qedi.co.za> wrote in message
news:C0A064F9069ED411BC7700E02909302A4B6B95@exchange.qedi.co.za...
> Hi Bernie,
>
> Do a session_register in the second script as well:
> <?php
> > session_start();
> > session_register("my_session_variable");
> > print "Value of 'my_session_variable': $my_session_variable";
> > ?>
>
> Rudolf Visagie
>
> -----Original Message-----
> From: Bernie Kruger [mailto:bkruger@mstsa.co.za]
> Sent: 19 July 2001 04:55
> To: php-general@lists.php.net
> Subject: [PHP] Re: Session problems
>
>
> Tried everything all of you suggested, still no luck :-(
>
> BK
>
> "Bernie Kruger" <bkruger@mstsa.co.za> wrote in message
> news:20010719144332.83501.qmail@pb1.pair.com...
> > Hi,
> >
> > I use this simple session script below, but the session variables are
not
> > carried over from 1.php to 2.php. What can be wrong? I can see on the
> > server that the files are created. When I open 1.php a 1K file is
created
> > on the server and the contents (my_session_variable|s:10:"some value";).
> > When I open 2.php afterwards a 0K file is created on the server which is
> > empty.
> >
> > I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> > Session method: files
> >
> > (1.php)
> >
> > <?php
> > session_start();
> > $my_session_variable = "some value";
> > session_register("my_session_variable");
> > ?>
> >
> > and
> >
> > (2.php)
> >
> > <?php
> > session_start();
> > print "Value of 'my_session_variable': $my_session_variable";
> > ?>
> >
> > Tx
> > BK
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net