ariya/phantomjs — pull request #238 by ecin (2012-04-18 23:37:39+00:00)
Title: Use a more descriptive format for --cookies-file

Currently, --cookies-file only stores the name-value pairs for cookies,
e.g.:

[mobile.twitter.com]
k=00.000.00.000.000000000000

After this commit, all cookie details are stored, e.g.:

[mobile.twitter.com]
k="@ByteArray(k=00.000.00.000.0000000000000000; expires=Wed, 25-Apr-2012
08:11:49 GMT; domain=.twitter.com; path=/)"

Loading the "expires" variable can make cookies less reusable,
but having the domain and path is required for cookies to work properly
in some websites. HttpOnly and Secure cookie flags can also change the
functionality of a page.

This patch presents one way to get access to more detailed cookies. A
better approach would be to add a page.cookies() function.