RE: [PHP] a question, need an answer
| From: | PHP4 Emailer | Date: | Sun, 22 Jun 2003 08:49:54 +0000 |
| Subject: | RE: [PHP] a question, need an answer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152433@lists.php.net to get a copy of this message | ||
PS, from the http://www.php.net/manual/en/function.session-register.php
page, you might want to read that because your second session call won't
work with register globals is disabled but $_SESSION array will. :)
-----Original Message-----
From: PHP4 Emailer [mailto:php@wolf-smart.com]
Sent: Sunday, June 22, 2003 3:46 AM
To: nabil; php-general@lists.php.net
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,
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 can be called from
subsequent pages like post would do with a form script after a user hits
submit.
I'm still learning PHP, so I could be way off, but that's how it's been
working for me. *Shrugs*
Good Luck
-----Original Message-----
From: nabil [mailto:nabil.attar@aws-syria.com]
Sent: Sunday, June 22, 2003 1:42 AM
To: php-general@lists.php.net
Subject: [PHP] a question, need an answer
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 unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php