Mostly the following questions very important for PHP :
1.what is use of session?
A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.
There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.
Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.
2. How to start ans destroy session in php?
1. session_start();
2. session _destroy();
Below example show u how to start and destroy:
3. PHP session variables:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment