{"id":21771125,"url":"https://github.com/initphp/redissessionhandler","last_synced_at":"2026-04-12T07:32:10.451Z","repository":{"id":62775310,"uuid":"562379575","full_name":"InitPHP/RedisSessionHandler","owner":"InitPHP","description":"InitPHP Redis Session Handler","archived":false,"fork":false,"pushed_at":"2022-11-06T06:50:21.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T03:13:44.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InitPHP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-06T06:48:25.000Z","updated_at":"2022-11-06T06:51:11.000Z","dependencies_parsed_at":"2022-11-06T08:30:36.465Z","dependency_job_id":null,"html_url":"https://github.com/InitPHP/RedisSessionHandler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FRedisSessionHandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FRedisSessionHandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FRedisSessionHandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FRedisSessionHandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InitPHP","download_url":"https://codeload.github.com/InitPHP/RedisSessionHandler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244746787,"owners_count":20503264,"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":[],"created_at":"2024-11-26T14:15:09.533Z","updated_at":"2025-11-01T08:04:18.534Z","avatar_url":"https://github.com/InitPHP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InitPHP Redis Session Handler\r\n\r\nThis library provides a way to keep your application's sessions on redis, not on the filesystem.\r\n\r\n## Requirements\r\n\r\n- PHP 7.4 or later\r\n- PHP Redis Extension\r\n- [InitPHP Redis Library](https://github.com/InitPHP/Redis) \r\n\r\n## Installation\r\n\r\n```\r\ncomposer require initphp/redis-session-handler\r\n```\r\n\r\n## Usage\r\n\r\n```php\r\nrequire_once \"vendor/autoload.php\";\r\n\r\n$redis = new \\InitPHP\\Redis\\Redis([\r\n    'host'          =\u003e '127.0.0.1',\r\n    'password'      =\u003e null,\r\n    'port'          =\u003e 6379,\r\n    'timeout'       =\u003e 0,\r\n    'database'      =\u003e 0,\r\n]);\r\n\r\n$sessionHandler = new InitPHP\\RedisSessionHandler\\Handler($redis);\r\nsession_set_save_handler($sessionHandler, true);\r\nsession_start();\r\n\r\n// You can use the $_SESSION global.\r\n```\r\n\r\n## Credits\r\n\r\n- [Muhammet ŞAFAK](https://www.muhammetsafak.com.tr) \u003c\u003cinfo@muhammetsafak.com.tr\u003e\u003e\r\n\r\n## License\r\n\r\nCopyright \u0026copy; 2022 [MIT License](./LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitphp%2Fredissessionhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitphp%2Fredissessionhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitphp%2Fredissessionhandler/lists"}