Home > DeveloperSection > Interviews > What is a Session?

Posted on    March-18-2011 12:00 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  891  View(s)
Rate this:

Sanjay Sharma
Sanjay Sharma

Total Post:42

Points:210
Posted on    March-18-2011 12:00 AM

session


A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.

An alternative way to make data accessible across the various pages of an entire website is to use a PHP Session.


A session creates a file in a temporary directory on the server where registered session variables and their values are stored. This data will be available to all pages on the site during that visit.


The location of the temporary file is determined by a setting in the php.ini file called session.save_path. Bore using any session variable make sure you have setup this path.


Modified On Apr-04-2016 12:59:25 AM

Don't want to miss updates? Please click the below button!

Follow MindStick