[PHP-DEV] Session variables
Hi, with ASP I use session variables to keep a variable alive between one page and another. What is the comparable way to do it with php? Thank you, Diana -- http://www.nvtechnologies.com/hgh -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Session variables
hi, Hi, with ASP I use session variables to keep a variable alive between one page and another. What is the comparable way to do it with php? Thank you, Diana believe it or not - using session variables: http://php.net/session -daniel -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Session variables
On Wed, 31 Jul 2002 16:53:59 +0200 Diana Castillo [EMAIL PROTECTED] wrote: Hi, with ASP I use session variables to keep a variable alive between one page and another. What is the comparable way to do it with php? Take a look at http://www.vl-srm.net/ hth pa -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Session variables
--- Pierre-Alain Joye [EMAIL PROTECTED] wrote: On Wed, 31 Jul 2002 16:53:59 +0200 Diana Castillo [EMAIL PROTECTED] wrote: Hi, with ASP I use session variables to keep a variable alive between one page and another. What is the comparable way to do it with php? Take a look at http://www.vl-srm.net/ You are suggesting using srm for session handling? Thats a little mis-guided. php's built in session handling would do the job. -brad __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Session variables
On Wed, 31 Jul 2002 08:57:36 -0700 (PDT) Brad LaFountain [EMAIL PROTECTED] wrote: You are suggesting using srm for session handling? Thats a little mis-guided. php's built in session handling would do the job. Yes, mis-reading, I read the usual application data request :), sorry :) pa -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Session variables confusion
Jon Parise wrote: What about $GLOBALS['HTTP_SESSION_VARS']['a']? Actually I'm searching for a way to access session variables that works with both register_globals settings. The above line works with register_globals = Off, but no On. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Session variables confusion
Environment: Current CVS on Win32. ?php session_register('a'); session_register('b'); session_register('c'); echo 'GLOBALS[a]: ' . ++$GLOBALS['a'] . 'br'; echo '_SESSION[b]: ' . ++$_SESSION['b'] . 'br'; echo 'HTTP_SESSION_VARS[c]: ' . ++$HTTP_SESSION_VARS['c'] . 'br'; ? register_globals = On - Only ++$GLOBALS['a'] is effective register_globals = Off - ++$GLOBALS['a'] is not effective, the other two work (ie. the numbers increase on sub- sequent requests) At the conference Rasmus told me that the $HTTP_SESSION_VARS array should work in _both_ situations. Is this broken, or intended? I'm confused right now - which is a no so uncommon situation nowadays :-) Greetings, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Session variables confusion
On Sun, Nov 11, 2001 at 12:02:56AM +0100, Sebastian Bergmann wrote: Environment: Current CVS on Win32. ?php session_register('a'); session_register('b'); session_register('c'); echo 'GLOBALS[a]: ' . ++$GLOBALS['a'] . 'br'; echo '_SESSION[b]: ' . ++$_SESSION['b'] . 'br'; echo 'HTTP_SESSION_VARS[c]: ' . ++$HTTP_SESSION_VARS['c'] . 'br'; ? register_globals = On - Only ++$GLOBALS['a'] is effective register_globals = Off - ++$GLOBALS['a'] is not effective, the other two work (ie. the numbers increase on sub- sequent requests) At the conference Rasmus told me that the $HTTP_SESSION_VARS array should work in _both_ situations. Is this broken, or intended? I'm confused right now - which is a no so uncommon situation nowadays :-) What about $GLOBALS['HTTP_SESSION_VARS']['a']? -- Jon Parise ([EMAIL PROTECTED]) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]