
- PHP Tutorial
- PHP - Home
- PHP - Introduction
- PHP - Environment Setup
- PHP - Syntax Overview
- PHP - Variable Types
- PHP - Constants
- PHP - Operator Types
- PHP - Decision Making
- PHP - Loop Types
- PHP - Arrays
- PHP - Strings
- PHP - Web Concepts
- PHP - GET & POST
- PHP - File Inclusion
- PHP - Files & I/O
- PHP - Functions
- PHP - Cookies
- PHP - Sessions
- PHP - Sending Emails
- PHP - File Uploading
- PHP - Coding Standard
- Advanced PHP
- PHP - Predefined Variables
- PHP - Regular Expression
- PHP - Error Handling
- PHP - Bugs Debugging
- PHP - Date & Time
- PHP & MySQL
- PHP & AJAX
- PHP & XML
- PHP - Object Oriented
- PHP - For C Developers
- PHP - For PERL Developers
- PHP Form Examples
- PHP - Form Introduction
- PHP - Validation Example
- PHP - Complete Form
- PHP login Examples
- PHP - Login Example
- PHP - Facebook Login
- PHP - Paypal Integration
- PHP - MySQL Login
- PHP AJAX Examples
- PHP - AJAX Search
- PHP - AJAX XML Parser
- PHP - AJAX Auto Complete Search
- PHP - AJAX RSS Feed Example
- PHP XML Example
- PHP - XML Introduction
- PHP - Simple XML
- PHP - Simple XML GET
- PHP - SAX Parser Example
- PHP - DOM Parser Example
- PHP Frame Works
- PHP - Frame Works
- PHP - Core PHP vs Frame Works
- PHP Design Patterns
- PHP - Design Patterns
- PHP Function Reference
- PHP - Built-In Functions
- PHP Useful Resources
- PHP - Questions & Answers
- PHP - Useful Resources
- PHP - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
PHP - Sessions Functions
PHP Sessions functions allows you to access data across multiple pages in the same session.
Installation details are available at here
List of Functions
PHP − indicates the earliest version of PHP that supports the function.
Sr.No | Function & Description | PHP |
---|---|---|
1 |
This discards the changes done and closes the current session. |
5 |
2 |
This returns the cache expire of the current session. |
4 |
3 |
This is used to set/get the cache limiter of the current session. |
4 |
4 |
This is used to close the current session. |
4 |
5 |
This is used to create a new session id. |
7 |
6 |
This is used to decode an encoded string of session data. |
4 |
7 |
This is used destroy the data related to the current session. |
4 |
8 |
This encodes the data in the current session into a string. |
4 |
9 |
This performs garbage collection on the current session data. |
4 |
10 |
It returns the session cookie parameters. |
4 | 11 |
It is used to set/retrieve the current session id. |
4 |
12 |
It is used to set/retrieve the name of the current session module. |
4 |
13 |
This is used to set/retrieve the name of the current session. |
4 |
14 |
This updates the current session id with the newly generated one. |
4 |
15 |
This is used shut down the current session. |
4 |
16 |
This re-initializes the session array with the original values. |
4 |
17 |
This sets/retrieves the save path of the current session. |
4 |
18 |
This is used to set the cookie parameters. |
4 |
19 |
This sets user-level session storage functions. |
4 |
20 |
This starts a new session. |
5 |
21 |
This returns the status of the current session. |
5 |
22 |
This releases all variables of the current session. |
4 |
23 |
This closes the current session data and closes the session. |
4 |