Difference between revisions of "Session Variables"
From Hostek.com Wiki
(Created page with "__FORCETOC__ ==ASP Session Variables== ==ColdFusion Session Variables== ==PHP Session Variables== Here is an example of testing Session Variables in PHP to verify they are ...") |
(No difference)
|
Revision as of 04:03, 16 July 2013
ASP Session Variables
ColdFusion Session Variables
PHP Session Variables
Here is an example of testing Session Variables in PHP to verify they are working:
<?php session_start(); if(isset($_SESSION['views'])) $_SESSION['views']=$_SESSION['views']+1; else $_SESSION['views']=1; echo "Views=". $_SESSION['views']; ?>
Click <a href="sessiontest.php">here</a> to refresh which should increment the number of Views.