Quoting Sherif Ramadan <theanomaly...@gmail.com>:

There's no mention in the RFC of how the functionality will work in PHP. Is
it possible to add example code of how it is to be used based on this
implementation?

"Max-Age" would simply be added to all Set-Cookie headers, after the "Expires" attribute. I thought that was obvious, but I'll make sure to add a few examples to make it clearer.

What BC breaks it introduced (if any)? Can there be an
option to use both Max-Age and Expires cookie attributes with the
introduced changes? How does the user know which attribute is being set?
None of this information seems to be in the RFC.

This is all (briefly) described under the "Technical details and considerations" section - both attributes should be sent and no side effects and/or breaking changes are expected.

As for how a user would know it - just like with the current cookies being sent (either via setcookie() or by ext/session), by looking at their Set-Cookie HTTP headers.


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to