Skip to content

Simple library for session package. Supports all php projects.

License

Notifications You must be signed in to change notification settings

global-source/simple-php-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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


About

Simple library for session package. Supports all php projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages