php-general | 2001072
Date: 07/19/01
- Next message: Slavomir Slizik: "Re: [PHP] Session problems"
- Previous message: Matt Greer: "Re: [PHP] Prevent user to close web browser"
- Maybe in reply to: Bernie Kruger: "[PHP] Session problems"
- Next in thread: Slavomir Slizik: "Re: [PHP] Session problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Default settings for sessions is to use cookies that expires when you
close (all instances of) the browser. If you are simply type 1.php and
then 2.php in Address your code must work. But, again: if you are using
the default configuration.
> -----Original Message-----
> From: Bernie Kruger [mailto:bkruger <email protected>]
> Sent: 19 iulie 2001 17:44
> To: php-general <email protected>
> Subject: [PHP] Session problems
>
>
> 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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Slavomir Slizik: "Re: [PHP] Session problems"
- Previous message: Matt Greer: "Re: [PHP] Prevent user to close web browser"
- Maybe in reply to: Bernie Kruger: "[PHP] Session problems"
- Next in thread: Slavomir Slizik: "Re: [PHP] Session problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

