Skip to content

flextype-components/session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Session Component

version MIT License

Installation

composer require flextype-components/session

Usage

Start the session.

Session::start();

Delete one or more session variables.

Session::delete('user');

Destroy the session.

Session::destroy();

Check if a session variable exists.

if (Session::exists('user')) {
    // Do something...
}

Get a variable that was stored in the session.

echo Session::get('user');

Return the sessionID.

echo Session::getSessionId();

Store a variable in the session.

Session::set('user', 'Awilum');

License

See LICENSE

About

Session Component provides basic methods to work with session.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages