{"id":19112902,"url":"https://github.com/chipslays/session","last_synced_at":"2025-06-13T18:33:05.643Z","repository":{"id":62501836,"uuid":"325054075","full_name":"chipslays/session","owner":"chipslays","description":"⏱ Easy way for manage Session on your website.","archived":false,"fork":false,"pushed_at":"2021-02-15T09:28:49.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T11:41:13.395Z","etag":null,"topics":["library","php-session","session"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chipslays.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-28T15:57:43.000Z","updated_at":"2021-02-15T09:28:52.000Z","dependencies_parsed_at":"2022-11-02T12:15:20.712Z","dependency_job_id":null,"html_url":"https://github.com/chipslays/session","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chipslays/session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipslays","download_url":"https://codeload.github.com/chipslays/session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsession/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259698950,"owners_count":22898165,"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","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":["library","php-session","session"],"created_at":"2024-11-09T04:34:28.917Z","updated_at":"2025-06-13T18:33:05.625Z","avatar_url":"https://github.com/chipslays.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Session\n\nEasy way for manage Session on your website.\n\n## Installation\n\n```bash\ncomposer require chipslays/session\n```\n\n## Usage\n\n```php\nuse Session\\Session;\n\nrequire 'vendor/autoload.php';\n\nSession::start([\n    'name'            =\u003e 'PHPSSID_CUSTOM_NAME',\n    'cookie_lifetime' =\u003e 86400, // seconds\n]);\n```\n\n\u003e See more available options [here](https://www.php.net/manual/ru/session.configuration.php).\n\n```php\nSession::set('name', 'chipslays');\n```\n\n```php\nSession::get('name');\n\n// second parameter is default value\nSession::get('name', 'Unknown name'); \n```\n\n```php\nSession::pull('name');\n```\n\n```php\nSession::has('name'); // true\nSession::has('email'); // false\n```\n\n```php\nSession::remove('name');\n```\n\n```php\nSession::clear();\n```\n\n```php\n$sessionId = Session::id();\n```\n\n```php\nSession::regenerate();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipslays%2Fsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fsession/lists"}