WHAT IS A SESSION?

Sanjay Sharma

Total Post:42

Points:210
Posted by  Sanjay Sharma
PHP 
PHP
 1117  View(s)
Ratings:
Rate this:
  1. Sanjay Sharma

    Post:42

    Points:210
    What is a Session?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!