Things To Remember on PHP


Image Source:www.faqs.org

Do you know what if felt like when you’re forgetting something and you promised to remember even just for one day? It felt like not having sessions in your website. Sessions in PHP temporarily saves important data that is needed for browsing the whole site, into the server for future references. Therefore, it will not take any of the user’s memory space. In our school, session is commonly used when the user has to log in first before entering. With session, his username and password won’t have to be displayed in the address bar, or the programmer won’t have to use POST for all of his pages. There are three functions used in PHP for session. Session_start() is used for starting a session and must always be placed before the body tag. It creates a unique id (UID) for the user. Session_unset() removes all of the values stored in the session. Session_destroy() deletes the UID. To store data as a session variable, user $_SESSION[‘variablename*’] and equate it to the value you want to save.

*Can be changed into what the user prefers.

Comments are closed.


Parse error: syntax error, unexpected T_STRING in /home/spm011/public_html/phpprogrammingguide/wp-content/themes/basic-concept-10/footer.php on line 8