Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a case in which Session::destroy does not function properly #58

Merged
merged 1 commit into from
Nov 13, 2015
Merged

Fixed a case in which Session::destroy does not function properly #58

merged 1 commit into from
Nov 13, 2015

Conversation

Thiry1
Copy link
Contributor

@Thiry1 Thiry1 commented Nov 13, 2015

以下の問題の修正。ひとつ目の挙動は意図した挙動かもしれないけど・・・。

Session::destroy()後にSession::get()を行うと削除した値を取得できてしまう

Session::set('k', 'v');
echo Session::get('k'); // v

Session::destroy();
echo Session::get('k'); // v

Session::destroy()後にSession::set()を行うと、削除した値が再度Sessionに登録される

Session::set('k', 'v');
echo Session::get('k'); // v

Session::destroy();

Session::set('another_key', 'foo');
echo Session::get('another_key'); //foo
echo Session::get('k'); //v

ucym added a commit that referenced this pull request Nov 13, 2015
Fixed a case in which Session::destroy does not function properly
@ucym ucym merged commit 9334674 into ucym:master Nov 13, 2015
@ucym
Copy link
Owner

ucym commented Nov 13, 2015

見落としてた、ありがとうございます!

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