PHP Doku:: Build cookie string - function.http-build-cookie.html

Verlauf / Chronik / History: (44) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteHTTPHTTP Funktionenhttp_build_cookie

Ein Service von Reinhard Neidl - Webprogrammierung.

HTTP Funktionen

<<http_inflate

http_date>>


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
jonathan dot aquino at gmail dot com
21.03.2009 7:46
Note that you must cast the result of http_parse_cookie to an array before passing it to http_build_cookie (see http://bugs.php.net/bug.php?id=47740 ).

Example:

<?php
$cookie
= http_parse_cookie('RMID=2dab5fc9296749c2f28ec0b7; expires=Saturday, 20-Mar-2010 01:34:06 GMT; path=/; domain=.example.com');
var_dump(http_build_cookie((array)$cookie));
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)