* Thus wrote Louie Miranda: > session_start(); > setcookie("cartId", session_id(), time() + ((3600 * 24) * 30)); > return session_id(); > > Can someone help me figure out what does the session of this code means?
Looking at the description of setcookie: bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]) that sets a cookie named "cartId" with the value of what the id of the session is for the length of 30 days. Now of course, if the default session settings havn't been modified, the session_id() will become invalid before the expiration of this cookie being set. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php