www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons PHP Session and Variable Handling Functions Bookmark and Share
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
Lesson 37
Lesson 38
Lesson 39
Lesson 40
Lesson 41
Lesson 42
Lesson 43
Lesson 44
In this lesson we will learn some very useful functions for session handling and variable handling.

Session-Handling Functions
Session handling is a way of perserving or persisting the session data of a user as a he / she navigates our Web site. The session data could be variables or objects.

session_start()
The session_start() function denotes the start a session if one has not already been started, or it resumes a session if there already exists a session. This function is argumentless i.e. it takes no arguments. This function has to be called at the beginning of the PHP script. Its syntax follows:

session_start();

session_destroy()
We use the session_destroy() function to destroy all the variables and other data associated with a user session. This functin is also argumentless and takes no arguments. Its syntax follows:

session_destroy(); Variable Handling Functions
Variable handling functions isset() and unset() help us manage our variables within the scope of a web application:

isset()
We use the isset() function to determine whether the argument variable exists. The isset() function returns true if the variable exists and false otherwise. Its syntax follows:

isset(var);

unset()
We use the unset() function to destry the argument variable. Its syntax follows:

unset(var);


Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.