I think you mean:
$_SESSION['eventid'] = 'arma2';
vs
$eventid = 'arma2';
session_register('eventid');
I'd advise the first, unless you need to ensure backwards compatibility with
PHP < 4.1
Justin
on 22/06/03 4:41 PM, nabil ([EMAIL PROTECTED]) wrote:
> what is the diffirent between :
> /
what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///
Regards
Nabil
Both accomplish the same thing, except how you are using it might not be
what you expect.
$_SESSIO
Sent: Sunday, June 22, 2003 3:46 AM
To: nabil; [EMAIL PROTECTED]
Subject: RE: [PHP] a question, need an answer
I could be wrong here, but from my experiences with sessions is that your
first session_start()
is assigning the value of 'arma2' to the $_SESSION['eventid'] variable,
where
I could be wrong here, but from my experiences with sessions is that your
first session_start()
is assigning the value of 'arma2' to the $_SESSION['eventid'] variable,
whereas the second one you are making the 'arama2' variable a global session
variable, so as to whatever it's value is on the page
4 matches
Mail list logo