-2

I am running a php script from the console. I cannot see any cookies getting stored in local. Does anyone know if this is possible? If yes, what should I check?

Nidis
  • 145
  • 1
  • 10

2 Answers2

0

Cookies is a browser feature. You cannot use it in console mode. (You can try to implement it yourself, please don't).

Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308
0

COOKIES are not used when running PHP in CLI mode. See this question for some additional details: Is it possible to read cookie/session value while executing PHP5 script through command prompt?

Community
  • 1
  • 1
Mike Mackintosh
  • 13,917
  • 6
  • 60
  • 87