{"id":26042604,"url":"https://github.com/slimdestro/dual-session-logger-php-slimdestro","last_synced_at":"2026-06-05T11:31:39.003Z","repository":{"id":216943626,"uuid":"742732299","full_name":"slimdestro/Dual-Session-Logger-PHP-SlimDestro","owner":"slimdestro","description":"Dual Session Logger - PHP","archived":false,"fork":false,"pushed_at":"2024-01-14T13:08:35.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T16:42:36.476Z","etag":null,"topics":["dual-session-php","php","php-library","php-session","php7","session-management"],"latest_commit_sha":null,"homepage":"https://modcode.dev","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/slimdestro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-13T07:40:24.000Z","updated_at":"2024-01-13T10:32:17.000Z","dependencies_parsed_at":"2024-01-13T20:23:57.618Z","dependency_job_id":"74e8b667-b821-40ad-9b53-576a57116a96","html_url":"https://github.com/slimdestro/Dual-Session-Logger-PHP-SlimDestro","commit_stats":null,"previous_names":["slimdestro/slimdestro_dual_session_logger_php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slimdestro/Dual-Session-Logger-PHP-SlimDestro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimdestro%2FDual-Session-Logger-PHP-SlimDestro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimdestro%2FDual-Session-Logger-PHP-SlimDestro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimdestro%2FDual-Session-Logger-PHP-SlimDestro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimdestro%2FDual-Session-Logger-PHP-SlimDestro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slimdestro","download_url":"https://codeload.github.com/slimdestro/Dual-Session-Logger-PHP-SlimDestro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimdestro%2FDual-Session-Logger-PHP-SlimDestro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33939225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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":["dual-session-php","php","php-library","php-session","php7","session-management"],"created_at":"2025-03-07T16:39:10.044Z","updated_at":"2026-06-05T11:31:38.983Z","avatar_url":"https://github.com/slimdestro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dual Session Logger - PHP\n#### This class logs session data($_SESSION[\"key\"] = $val) into both database and File ###\n\n## Setup \n\n```sh\nrequire_once('./DualSessionLogger.php'); \n$db = new PDO('your_db_details_here');\n$DualSessionLogger = new DualSessionLogger($db, 'dual_session_table_name(optional)');\n```\n## Now bind this class with to session handler of native PHP\n\n```sh\nsession_set_save_handler($DualSessionLogger, true);\n```\n\n## Now the data you save in session using $_SESSION[] will save in both Database and File\n\n```sh\nsession_start();\n$_SESSION[\"db_file_session_key\"] = \"db+file_value\";\n```\n\n## To verify if this class is really working, you can try like this: \n```sh\nif (isset($_SESSION[\"db_file_session_key\"])){\n    echo \"\u003cb\u003eValue=\u003e \u003c/b\u003e\" . $_SESSION[\"db_file_session_key\"];\n} else {\n    echo \"Didnt work\";\n}\n```\n\n## Author\n\n[Checkout my Website](https://modcode.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimdestro%2Fdual-session-logger-php-slimdestro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslimdestro%2Fdual-session-logger-php-slimdestro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimdestro%2Fdual-session-logger-php-slimdestro/lists"}