• PHP Video Tutorials

PHP - Sessions Functions


Advertisements

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

session_abort

This discards the changes done and closes the current session.

5
2

session_cache_expire

This returns the cache expire of the current session.

4
3

session_cache_limiter

This is used to set/get the cache limiter of the current session.

4
4

session_commit

This is used to close the current session.

4
5

session_create_id

This is used to create a new session id.

7
6

session_decode

This is used to decode an encoded string of session data.

4
7

session_destroy

This is used destroy the data related to the current session.

4
8

session_encode

This encodes the data in the current session into a string.

4
9

session_gc

This performs garbage collection on the current session data.

4
10

session_get_cookie_params

It returns the session cookie parameters.

4
11

session_id

It is used to set/retrieve the current session id.

4
12

session_module_name

It is used to set/retrieve the name of the current session module.

4
13

session_name

This is used to set/retrieve the name of the current session.

4
14

session_regenerate_id

This updates the current session id with the newly generated one.

4
15

session_register_shutdown

This is used shut down the current session.

4
16

session_reset

This re-initializes the session array with the original values.

4
17

session_save_path

This sets/retrieves the save path of the current session.

4
18

session_set_cookie_params

This is used to set the cookie parameters.

4
19

session_set_save_handler

This sets user-level session storage functions.

4
20

session_start

This starts a new session.

5
21

session_status

This returns the status of the current session.

5
22

session_unset

This releases all variables of the current session.

4
23

session_write_close

This closes the current session data and closes the session.

4
php_function_reference.htm

Useful Video Courses


Video

PHP Online Training

45 Lectures 9 hours

Malhar Lathkar

Video

Become PHP Facebook Developer: Password-Less Authentication

34 Lectures 4 hours

Syed Raza

Video

Ultimate PHP & MySQL Web Development Course & OOP Coding

84 Lectures 5.5 hours

Frahaan Hussain

Video

Learn PHP from Scratch

17 Lectures 1 hours

Nivedita Jain

Video

E Commerce Website Development In PHP With PDO

100 Lectures 34 hours

Azaz Patel

Video

PHP in Telugu

43 Lectures 5.5 hours

Vijay Kumar Parvatha Reddy

Advertisements