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
il [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 1:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] a question, need an answer
what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_
what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///
Regards
Nabil
--
""open source world, open mind for all""
--
PHP General Mailing List (http://www.php.net/)
To u
5 matches
Mail list logo