Re: Session problems

From: Date: Thu, 19 Jul 2001 14:52:42 +0000
Subject: Re: Session problems
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-58705@lists.php.net to get a copy of this message
1. Cookies are on 2. session.use_trans_sid = 1 Will try the rest. Tx "Slavomir Slizik" <ssl@army.vojak.sk> wrote in message news:Pine.LNX.4.33.0107191552090.400-100000@army.vojak.sk... > Hello, > > check out if you have cookies turned on. Or, compile php with > --enable-trans-sid, where the PHPSESSID is automatically attached to all > URLs and forms without using cookies. > try to do session_register() before session_start() in 1.php, or do not > use session_start() in 1.php (only session_register()). > > slavko > > > On Thu, 19 Jul 2001, Bernie Kruger wrote: > > > 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 > > >

« previous php.general (#58705) next »