Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Http\Header\SetCookie Allow unsetting cookie attibutes by resetting to null #4776

Closed
wants to merge 6 commits into from

Conversation

ademarre
Copy link
Contributor

@ademarre ademarre commented Jul 3, 2013

Fixes #4735

@ademarre
Copy link
Contributor Author

ademarre commented Jul 3, 2013

I believe this also fixes the setExpires(0) issue to allow Expires=Thu, 01-Jan-1970 00:00:00 GMT.

unknown added 3 commits July 3, 2013 13:54
…he constructor. Remove redundant input checking from constrcutor in favor of that offered by the set*() methods.
@mwillbanks
Copy link
Contributor

Please provide unit tests for the updated methods that allow null to test for the changes in behavior.

@ademarre
Copy link
Contributor Author

ademarre commented Jul 9, 2013

Of course; sorry. I've added four tests for the new behavior.

@ghost ghost assigned weierophinney Jul 19, 2013
weierophinney added a commit that referenced this pull request Jul 19, 2013
Zend\Http\Header\SetCookie Allow unsetting cookie attibutes by resetting to null
weierophinney added a commit that referenced this pull request Jul 19, 2013
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
Zend\Http\Header\SetCookie Allow unsetting cookie attibutes by resetting to null
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zend\Http\Header\SetCookie cannot be converted to session cookie once "expires" is set
3 participants