RE: [PHP-WIN] RE: Sessions - Bug?

From: Date: Mon, 28 Aug 2000 21:34:22 +0000
Subject: RE: [PHP-WIN] RE: Sessions - Bug?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2239@lists.php.net to get a copy of this message
Sorry I missed that! However, if I include double quotes when registering the variable it still doesn't work - same thing occurs! I think I might have put the incorrect settings in my PHP.INI file. I've told it to save my sessions in a directory called sessions, like: session.save_path = c:\session\ So what should I set the following to? session.cookie_path = ? session.cookie_domain = ? Any other settings that could affect my sessions not working properly? Thanks -----Original Message----- From: Andy Hoffman [mailto:andy.hoffman@bms.com] Sent: 28 August 2000 15:02 To: James Duncan Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] RE: Sessions - Bug? James Duncan wrote: > Completed more testing and found weird behaviour. I'm very new to all of > this so I'm probably the one in the wrong but surely the following is a bug? > > <?php > session_start(); > session_register(MyVariable); > $MyVariable = 1; > echo "Variable is: $MyVariable<br>\n"; > ?> > > Everything occurs as expected. "Variable is: 1" is displayed onscreen and > the session file contains: MyVariable|i:1; > > Next run this as a separate PHP script. > ..... James, As Klaus stated in an earlier message "session_register("MyVariable"); //allways with "" and without $". Could this be part of the problem? Try putting the double quotes around your variable name in the call to session_register. Does that do anything different? -- Andy Hoffman Web Developer Bristol-Myers Squibb email: andy.hoffman@bms.com

« previous php.windows (#2239) next »