Chapter 8. Cookies
Cookies are mostly used to save small information about users' activities during visits on a particular site. Most often, this information is used when the user visits the site again, like knowing which particular search the user used or the page from where the user left off. PhantomJS supports cookies and has a minimal API to manage cookies within the phantom
object.
Default cookies are enabled in PhantomJS, and we can also disable cookies by setting the following property:
phantom.cookiesEnabled = false;