Sessions and Variables in PHP: Difference between revisions
Jump to navigation
Jump to search
New page: learned something: The only way for any variable, (apache, environment, php) to remain set the next time the page is loaded is to create a session. Use start_session(); on the top of ea... |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
The only way for any variable, (apache, environment, php) to remain set the next time the page is loaded | |||
is to create a session. Use start_session(); on the top of each page. It is not only necessary to START a session, but | is to create a session. Use start_session(); on the top of each page. It is not only necessary to START a session, but | ||
also necessary to RESUME a session. The reloading of a page is an example of when RESUME using start_session(); will be | also necessary to RESUME a session. The reloading of a page is an example of when RESUME using start_session(); will be | ||
necessary to have access to those variable values. | necessary to have access to those variable values. | ||
start_session(); | |||
Start or resume a session. | |||
reference: http://nl3.php.net/manual/en/function.session-start.php | reference: http://nl3.php.net/manual/en/function.session-start.php | ||
{{:Sparse Entry}} | |||
[[Category:Computer Technology]] | [[Category:Computer Technology]] | ||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:PHP]] | [[Category:PHP]] |
Latest revision as of 14:24, 25 July 2014
The only way for any variable, (apache, environment, php) to remain set the next time the page is loaded is to create a session. Use start_session(); on the top of each page. It is not only necessary to START a session, but also necessary to RESUME a session. The reloading of a page is an example of when RESUME using start_session(); will be necessary to have access to those variable values.
start_session();
Start or resume a session.
reference: http://nl3.php.net/manual/en/function.session-start.php
![]() Learn more... |