note 17177 deleted from function.session-get-cookie-params by jimw

From: Date: Mon, 17 Dec 2001 23:31:50 +0000
Subject: note 17177 deleted from function.session-get-cookie-params by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23090@lists.php.net to get a copy of this message
Due to the fact that the function returns an array, after some trial, tribulation and endless loops, I think this is the best way to actually return and view the session_get_cookie_params() information: $s=session_get_cookie_params(); while (list($key, $value) = each($s)) { echo $key." ".$value."<br>"; } If you stick the session_get_cookie_params() into the each() element of the loop (rather than assigning it to a variable, $s in the example,) it causes an endless loop.

« previous php.notes (#23090) next »