web blazonry web development scripts and tutorials
 
Web blazonry.com
   Home       PHP       Name Generators       Perl       CSS       Javascript       Java       devTips       Resources   




PHP Name Generators
  Wu-Name
  U.S. Name
  Baby Name





PHP: Session Variables

A session variable is a variable that persists from one page to another without physically passing that information. One common example of a session variable is storing the username of the user logged in.

Session variables are useful for shopping carts and most applications. With session variables you do not need to "hide" data in hidden form fields or pass them via Query Strings from page-to-page.

My example script is the old guess a number between 1 and 100 game. The script uses session variables to track the number picked, number of guesses for the current game, number of games played and total number of guesses from game to game.

Download the source code here: guessnum.phps.

Click the link below to see it in action.


Start New Game Here


Related Link:

 

Newest Pages
Test Google Ads Part 2
Free Linux Admin Books
Free Linux Books for Programmers
Free Books for Linux on the Desktop
Free PHP Books
Free JavaScript Books
Free Java Books - Advanced
Free Java Books - Basic
Free Perl Books
Free Python Books
Quote of the Day (PHP)
Debugging Part 2
How to Test Google Ads
Most Popular Pages
U.S. Name Generator
Baby Name Generator
Wu Name Generator
Popup Windows (JavaScript)
Intro to Web Databases (PHP, MySQL)
Upload and Resize an Image (PHP)
How To Install Apache + PHP + MySQL

Least Popular Pages
iNews Aplet (Java)
Java Resources)
Site Monitor (Perl)
Load Order of Images(Javascript)
 
 

  © 1997-2008. astonishinc.com   All Rights Reserved.