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

Check if session is started before accessing #35

Merged
merged 2 commits into from
Dec 27, 2016
Merged

Check if session is started before accessing #35

merged 2 commits into from
Dec 27, 2016

Conversation

GwendolenLynch
Copy link
Contributor

No description provided.

@CarsonF
Copy link
Member

CarsonF commented Dec 22, 2016

That voids the check completely.

@GwendolenLynch
Copy link
Contributor Author

Yeah, hold this.

@GwendolenLynch
Copy link
Contributor Author

@CarsonF I have 🐒 tested this and it seems to work as expected, i.e. if a session cookie is present in the initial request, the session will be restarted so this check is actually valid.

I have updated the tests as such, and covered off the deprecated use of $this->getMock() in the process.

@CarsonF
Copy link
Member

CarsonF commented Dec 27, 2016

Ah! Because session listener starts the session if precious exists.

@CarsonF
Copy link
Member

CarsonF commented Dec 27, 2016

Can you remove the isset around session check? It's very non intuitive IMO

@GwendolenLynch
Copy link
Contributor Author

Can you remove the isset around session check? It's very non intuitive IMO

Ha! I can't believe I missed that … Done!

@CarsonF CarsonF merged commit 9ec3f4d into bolt:master Dec 27, 2016
@GwendolenLynch GwendolenLynch deleted the hotfix/session branch December 27, 2016 13:58
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