Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.01 KB

README.md

File metadata and controls

32 lines (27 loc) · 1.01 KB

Simple PHP Session


Simple and effective library for manage php session with '0% Depenance'.

Function

init()

To initiating the session if not already initiated and will return the session id.

  Session::init();    // Initiating the session and return session id.

set ($key,$value)

To create a new session item or update the existing session item by the given key with value.

  Session::set('name','Shankar Thiyagaraajan');    // Set or update the item "name" to the session.

get ($key, $default)

To get an item from the session with the "$key". if item is not exist, then it will return the "$defaul" value.

  Session::get('name','No Name');    // Return the session item "name". If item is not exist then return "No Name".

remove ($key)

To remove an item from the session with the "$key".

  Session::remove('name');     // Remove an item from the session.

Lisence