-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add opportunity to provide all values for a cookie in setCookie method #724
Comments
Not sure if setting other parameters on a cookie is supported by all drivers. |
Looking at the function definition of DriverInterface::setCookie in DriverInterface.php:203 the phpdoc states that the function throws
So if setting name or value is not supported by a driver there is an exception for that. Couldn't that be expanded to domain and expiry? |
Not sure, because MinkExtension for example is making setCookie calls in driver agnostic ways and can always pass all parameters. This way it might break all existing calls. Maybe Maybe that even will work as expected. However all cookie-related driver test suite tests also needs to be updated to support it. |
The question is which driver support setting these. If only 1 driver can implement the abstraction fully, it is a bad abstraction. This is why we ask you about driver support for this new feature. |
My two cents here, as far as i know, Selenium, PhantomJS and ZombieJS support cookies with more than just name, value. I kind of assume that the driver BrowserKit/Goutte will also be able to support this because in the end is "just" a header that need to be sent to the server. |
Yeah this sucks. Cannot set custom domain for the cookie! I have to override the |
Currently
setCookie
accepts only name and value. I suggest extending this so that the method accepts all other possible parameters: domain and expiry (not sure about secure though) as described here.The change implies adding parameters to the inteface
DriverInterface
and implementation in drivers.The text was updated successfully, but these errors were encountered: