How to handle Basic PHP Sessions?

Posted by Jay     Tags: , , 15 October, 2009    1,327 views    (1) Comment

A session is a way to store information (in the form of variables) to be used across multiple pages. Unlike a cookie, specific variable information is not stored on the user computer. It is also unlike other variables in the sense that we are not passing them individually to each new page, but instead retrieving them from the session we open at beginning of each page. Call this code test_session_page1.php <?php // this starts the session session_start(); // this sets variables Read Full Article (Click here)...

Categories : Web & Scripts Tags : , ,

What’s a php session anyway?

Posted by Jiltin     Tags: , , 18 October, 2008    744 views    (0) Comment

This is not my original php program. Since I find this is very useful for php programming, I got this from “Site With The Lamp” and reproduced for my reference. ================================================================= A web server is not expected to remember who you are. After a browser retrieves a web page it closes the connection to the web server. (This is not strictly true with HTTP 1.1 but it has little significance for us.) What all this means is that if you logged into a Read Full Article (Click here)...

Categories : Web & Scripts Tags : , ,