Created
September 13, 2008 11:23
-
-
Save pokeb/10590 to your computer and use it in GitHub Desktop.
Quick and dirty HTTP cookie header parser in PHP
This is good alternative: https://github.com/guzzle/guzzle3/blob/master/src/Guzzle/Parser/Cookie/CookieParser.php
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I stumble upon this thread in search for something fast (procedural-I'm in Drupal-7)
and since it was not what I was looking for; here attached different version.
So just use
$cookies=_get_cookie();
or if you want specific cookie:$cookie = _get_cookie("PHPSESSID");