Re: POST arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



William Stokes wrote:

"Why do you want to post it to itself? Why not use a session instead? "
-I dont know. Never tried "session"

"It's a lot more efficient."
-OK. Is it more complicated to write?

"session" is great, gets me high every time. See your local supplier or go to http://php.net/session to order yours.

In summary...

1) Call session_start(); at the top, that is to say the very first line, of every script
2) Use the $_SESSION superglobal at will (no pun intended)
3) PHP takes care of storing the contents of $_SESSION between pages
4) Remember that the session will expire after a period of inactivity or when the user closes their browser (subject to the configuration in php.ini - the URL above explains all that)
5) There is no step 5!

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux