Session Functions in PHP

List of Session Functions in PHP

Explanation

Here a list of Session Functions are available.
This tutorial will explain you how to use sessions in your web page.
Table of Contents
session_cache_expire
Returns current cache expire

session_cache_limiter
Get or set the current cache limiter

session_decode
Decode session data from a string

session_encode
Encodes the current session data as a string

session_destroy
Destroys all data registered to a session

session_get_cookie_params
Get the session cookie parameters

session_set_cookie_params
Set session cookie parameters

session_id
Get or set the current session id

session_name
Get or set the current session name

session_register
Register one or more global variables with the current session

session_is_registered
Find whether a global variable is registered

session_unregister
Unregister a global variable from the current session

session_module_name
Get and/or set the current session module

session_regenerate_id
Update the current session id with a newly generated one

session_save_path
Get or set the current session file path

session_set_save_handler
Set user-level session storage functions

session_start
Initialize session data

session_unset
Free all session variables currently registered

session_write_close
Write session data and end the session

PHP Topics


Ask Questions

Ask Question