{"id":33952900,"url":"https://github.com/yakeing/php_session","last_synced_at":"2025-12-12T19:50:45.299Z","repository":{"id":57085768,"uuid":"43930203","full_name":"yakeing/php_session","owner":"yakeing","description":"This is a SESSION class function package, use more easily, just a few simple functions can use it.","archived":false,"fork":false,"pushed_at":"2021-05-16T06:10:43.000Z","size":120,"stargazers_count":51,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-15T15:22:12.880Z","etag":null,"topics":["php-sessions","session"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yakeing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"yakeing","custom":"https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md"}},"created_at":"2015-10-09T03:16:50.000Z","updated_at":"2024-04-19T02:07:21.000Z","dependencies_parsed_at":"2022-08-25T00:50:32.717Z","dependency_job_id":null,"html_url":"https://github.com/yakeing/php_session","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yakeing/php_session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakeing%2Fphp_session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakeing%2Fphp_session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakeing%2Fphp_session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakeing%2Fphp_session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yakeing","download_url":"https://codeload.github.com/yakeing/php_session/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakeing%2Fphp_session/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27690099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php-sessions","session"],"created_at":"2025-12-12T19:50:44.555Z","updated_at":"2025-12-12T19:50:45.291Z","avatar_url":"https://github.com/yakeing.png","language":"PHP","funding_links":["https://github.com/sponsors/yakeing","https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md"],"categories":[],"sub_categories":[],"readme":"# SESSION\n\nThis is a SESSION class function package, use more easily, just a few simple functions can use it.\n\nSession Functions [Table of Contents](https://www.php.net/manual/en/ref.session.php).\n\n### Travis CI badge\n\n[![Travis-ci](https://api.travis-ci.com/yakeing/php_session.svg?branch=main)](https://travis-ci.com/yakeing/php_session)\n\n### codecov badge\n\n[![codecov](https://codecov.io/gh/yakeing/php_session/branch/main/graph/badge.svg)](https://codecov.io/gh/yakeing/php_session)\n\n### Github badge\n\n[![Downloads](https://4.vercel.app/github/downloads/yakeing/php_session?icon=github)](../../)\n[![Size](https://4.vercel.app/github/size/yakeing/php_session?icon=github)](src)\n[![tag](https://4.vercel.app/github/tag/yakeing/php_session?icon=github)](../../releases)\n[![license](https://4.vercel.app/static/license/555/MPL-2.0/fe7d37?icon=github)](LICENSE)\n[![languages](https://4.vercel.app/static/language/555/PHP/34abef?icon=github)](../../search?l=php)\n\n### Installation\n\nUse [Composer](https://getcomposer.org) to install the library.\nOf course, You can go to [Packagist](https://packagist.org/packages/yakeing/php_session) to view.\n\n```\n\n    $ composer require yakeing/php_session\n\n```\n\n### session init\n\n- [x] example\n```php\n    $expire = 180;  //Default server 180 minutes client end\n    $id = md5('uid'); //user ID, Default automatic generation\n    $name = \"PHPSESSID\";\n    $limiter = \"private\";\n    $handler = null;\n    $session = new session($expire, $id, $name, $limiter, $handler);\n```\n\n### FUNCTION\n\n- [x] example\n```php\n    $name = 'admin';\n    $value = 'pass';\n    $session-\u003eSet($name, $value); //Set up a session Value\n    $session-\u003eGet($name); //Get a session Value\n    $session-\u003eDelete($name); //Write off a session Value\n    $session-\u003eUnset(); //End all session Value\n    $session-\u003eDestroy(); //End all session Value\n```\n\n[Sponsor](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)\n---\n\nIf you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.\n\n[![Sponsor](https://4.vercel.app/static/Sponsor/EA4AAA?icon=heart)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)\n\nAuthor\n---\n\nweibo: [yakeing](https://weibo.com/yakeing)\n\ntwitter: [yakeing](https://twitter.com/yakeing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakeing%2Fphp_session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyakeing%2Fphp_session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakeing%2Fphp_session/lists"}