Title: $session->migrate() called before session is started · Issue #7 · stackphp/session · GitHub
Open Graph Title: $session->migrate() called before session is started · Issue #7 · stackphp/session
X Title: $session->migrate() called before session is started · Issue #7 · stackphp/session
Description: I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\Session and always got an empty session ID. Reason is, that $session->migrate is called when no cookie is present. This leads ...
Open Graph Description: I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\Session and always got an empty session ID. Reason is, that $session->migrate is calle...
X Description: I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\Session and always got an empty session ID. Reason is, that $session->migrate is ca...
Opengraph URL: https://github.com/stackphp/session/issues/7
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$session-\u003emigrate() called before session is started","articleBody":"I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\\Session and always got an empty session ID. \n\nReason is, that $session-\u003emigrate is called when no cookie is present. This leads to a call to session_regenerate_id (which fails, because no session was started yet). Afterwards NativeSessionStorage::loadSession is invoked, which sets NativeSessionStorage::$started to true.\n\nSo in the end I have a broken session (empty session id). I could fix this, by adding a $session-\u003estart() before the call to $session-\u003emigrate().\n","author":{"url":"https://github.com/pascal-hofmann","@type":"Person","name":"pascal-hofmann"},"datePublished":"2015-09-06T09:44:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7/session/issues/7"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4625f2e5-8adc-4bec-f63b-8291e15b0692 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D01C:12343F:26D5D00:3334322:696B1B00 |
| html-safe-nonce | b581a4a3ee5edc818b93f28a37ea91c647b0169dc5d30780aca1999afac480f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDFDOjEyMzQzRjoyNkQ1RDAwOjMzMzQzMjI6Njk2QjFCMDAiLCJ2aXNpdG9yX2lkIjoiODg0NTQwNjQyMTEzMDA5MTI2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c1185e61ee249c19de6067b15d8a5d5e93d6dcb433c15e7eb53fa2c4149a3cf |
| hovercard-subject-tag | issue:105082711 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackphp/session/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d89d2b5223e39005e26f1dfaf3fd4b8ea6dd3482d92ce6c123c47c548e001028/stackphp/session/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d89d2b5223e39005e26f1dfaf3fd4b8ea6dd3482d92ce6c123c47c548e001028/stackphp/session/issues/7 |
| og:image:alt | I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\Session and always got an empty session ID. Reason is, that $session->migrate is calle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pascal-hofmann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/stackphp/session git https://github.com/stackphp/session.git |
| octolytics-dimension-user_id | 3535361 |
| octolytics-dimension-user_login | stackphp |
| octolytics-dimension-repository_id | 8240264 |
| octolytics-dimension-repository_nwo | stackphp/session |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8240264 |
| octolytics-dimension-repository_network_root_nwo | stackphp/session |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width