Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lazy session start for #6036 without bc #10310

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

Closed
wants to merge 1 commit into from
Closed

lazy session start for #6036 without bc #10310

wants to merge 1 commit into from

Conversation

ewgRa
Copy link
Contributor

@ewgRa ewgRa commented Feb 22, 2014

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #6036
License MIT
Doc PR

This patch solve problem when session starts after call read method like get, has, count without checking that session isStarted.

@ewgRa
Copy link
Contributor Author

ewgRa commented Feb 22, 2014

This is original #10156 without BC

*
* @return boolean
*/
private function isExists()
Copy link
Member

Choose a reason for hiding this comment

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

isExists is a weird name. You have 2 verbs in this name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any suggestions? I think about this name and haven't better name.

Copy link
Contributor

Choose a reason for hiding this comment

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

exists, has, isset, isDefined, ... ? It depends on what this method does

@ewgRa
Copy link
Contributor Author

ewgRa commented Feb 22, 2014

@stof I rename MockArrayLazySessionStorage to LazyMockArraySessionStorage as you mentioned

@ewgRa
Copy link
Contributor Author

ewgRa commented Feb 23, 2014

I think to close this PR, because of this line in storage:

return isset($_COOKIE[session_name()]);

Actually hasPreviousSession in Storage must have Request to work like in Request::hasPreviousSession, but this is very big changes and I'm not sure that this will be right changes and now I haven't idea, how to solve this.

@ewgRa
Copy link
Contributor Author

ewgRa commented Oct 20, 2015

Closed, seems will be fixed in 3.0 with broke BC.

@ewgRa ewgRa closed this Oct 20, 2015
@ewgRa ewgRa deleted the issue_6036_start_session_at_read_no_bc branch October 20, 2015 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants