1.0.1 • Published 6 years ago

@yakeing/php-session v1.0.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
6 years ago

SESSION

This is a SESSION class function package, use more easily, just a few simple functions can use it.

Session Functions Table of Contents

Travis CI

Travis-ci

codecov

codecov

Packagist

Version Downloads

Github

Downloads Size tag license languages

Installation

Use Composer to install the library.

    $ composer require yakeing/php_session

session init

  • example
    $expire = 180;  //Default server 180 minutes client end
    $id = md5('uid'); //user ID, Default automatic generation
    $name = "PHPSESSID";
    $limiter = "private";
    $handler = null;
    $session = new session($expire, $id, $name, $limiter, $handler);

FUNCTION

  • example
    $name = 'admin';
    $value = 'pass';
    $session->Set($name, $value); //Set up a session Value
    $session->Get($name); //Get a session Value
    $session->Deletes($name); //Write off a session Value
    $session->Unsets(); //End all session Value
    $session->Destroy(); //End all session Value

Donate

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.

Bitcoin

1FYbZECgs3V3zRx6P7yAu2nCDXP2DHpwt8

Bitcoin

WeChat

WeChat

Alipay

Alipay

Author

weibo: yakeing

twitter: yakeing

1.0.1

6 years ago

1.0.0

6 years ago