Skip to content

Take session ID from session_id() instead of cookie.#133

Closed
KacerCZ wants to merge 3 commits into
nette:v2.4from
KacerCZ:session_id_fix
Closed

Take session ID from session_id() instead of cookie.#133
KacerCZ wants to merge 3 commits into
nette:v2.4from
KacerCZ:session_id_fix

Conversation

@KacerCZ
Copy link
Copy Markdown

@KacerCZ KacerCZ commented Mar 6, 2018

  • bug fix? yes
  • new feature? no
  • BC break? no

Fixes #129
Session ID is taken from session_id() instead of cookie.

@KacerCZ
Copy link
Copy Markdown
Author

KacerCZ commented Mar 6, 2018

AppVeyor fail is not related to this PR.

Comment thread src/Http/Session.php
session_id($id);
} else {
unset($_COOKIE[session_name()]);
$id = session_id();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it and it returns empty string when session is not started.

@dg dg closed this in a1a4023 Mar 14, 2018
dg added a commit that referenced this pull request Mar 14, 2018
dg added a commit that referenced this pull request Mar 14, 2018
dg added a commit that referenced this pull request Mar 14, 2018
dg added a commit that referenced this pull request Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants