{"id":13878581,"url":"https://github.com/rack/rack-session","last_synced_at":"2025-04-06T03:10:02.648Z","repository":{"id":40550475,"uuid":"337893764","full_name":"rack/rack-session","owner":"rack","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-10T04:45:14.000Z","size":87,"stargazers_count":31,"open_issues_count":7,"forks_count":14,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-05-08T18:16:15.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/rack.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-11T00:40:49.000Z","updated_at":"2024-06-02T16:33:00.000Z","dependencies_parsed_at":"2024-01-22T20:03:20.613Z","dependency_job_id":"d350b91b-274e-4b1a-adeb-85c0b2672132","html_url":"https://github.com/rack/rack-session","commit_stats":{"total_commits":37,"total_committers":4,"mean_commits":9.25,"dds":"0.16216216216216217","last_synced_commit":"ebd05eb414ef12608031cf5a4bb450fa9bffb68b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rack%2Frack-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rack%2Frack-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rack%2Frack-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rack%2Frack-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rack","download_url":"https://codeload.github.com/rack/rack-session/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"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-08-06T08:01:53.788Z","updated_at":"2025-04-06T03:10:02.623Z","avatar_url":"https://github.com/rack.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Rack::Session\n\nSession management implementation for Rack.\n\n[![Development Status](https://github.com/rack/rack-session/workflows/Test/badge.svg)](https://github.com/rack/rack-session/actions?workflow=Test)\n\n## Usage\n\nIn your `config.ru`:\n\n``` ruby\n# config.ru\n\nrequire 'rack/session'\nuse Rack::Session::Cookie,\n  :domain =\u003e 'mywebsite.com',\n  :path =\u003e '/',\n  :expire_after =\u003e 3600*24,\n  :secret =\u003e '**unique secret key**'\n```\n\nUsage follows the standard outlined by `rack.session`, i.e.:\n\n``` ruby\nclass MyApp\n  def call(env)\n    session = env['rack.session']\n\n    # Set some state:\n    session[:key] = \"value\"\n  end\nend\n```\n\n### Compatibility\n\n`rack-session` code used to be part of Rack, but it was extracted in Rack v3 to this gem. The v1 release of this gem is compatible with Rack v2, and the v2 release of this gem is compatible with Rack v3+. That means you can add `gem \"rack-session\"` to your application and it will be compatible with all versions of Rack.\n\n## Contributing\n\nWe welcome contributions to this project.\n\n1.  Fork it.\n2.  Create your feature branch (`git checkout -b my-new-feature`).\n3.  Commit your changes (`git commit -am 'Add some feature'`).\n4.  Push to the branch (`git push origin my-new-feature`).\n5.  Create new Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frack%2Frack-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frack%2Frack-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frack%2Frack-session/lists"}