Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-14 Thread Analysis & Solutions
On Tue, Aug 13, 2002 at 10:07:57AM -0700, Rasmus Lerdorf wrote: > > while ( list($Key, $Val) = each($_SESSION) ) { > > $$Key = $Val; > > } > > extract($_SESSION) is a better way to do that. Yeah. Old habits die hard! :) --Dan -- PHP classes that make web desi

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Rasmus Lerdorf
> while ( list($Key, $Val) = each($_SESSION) ) { > $$Key = $Val; > } extract($_SESSION) is a better way to do that. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Rasmus Lerdorf
No real reason to start the session in index.php. You are not registering any session vars, nor are you accessing any. > index.php >session_start(); > ?> > > > > > Admin Login > > > > Username: > > > > > > Passwor

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Analysis & Solutions
Petre: On Tue, Aug 13, 2002 at 03:18:42PM +0200, Petre Agenbag wrote: > > I have register_golbals = on, BUT, I want to find a way to code that I > know will always work, regardless of register_globals or cookies, so > that I am only dependant on the trans-sid ( but If I could rule that out > too,

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Petre Agenbag
Rasmus OK, I think I understand the principle now, yet, when I implement id, my app still fails. I have register_golbals = on, BUT, I want to find a way to code that I know will always work, regardless of register_globals or cookies, so that I am only dependant on the trans-sid ( but If I could ru