Setting multiple cookies

From: Date: Tue, 31 Oct 2000 16:18:24 +0000
Subject: Setting multiple cookies
Groups: php.general 
Request: Send a blank email to php-general+get-22953@lists.php.net to get a copy of this message
Is there anyway to get around having seperate setcookie statements for each cookie you want to set? I want to just set 2 or 3 cookies value pairs, and I have done so with 2 or 3 seperate setcookie statements. Is there an easier and quicker way to set multiple cookies with one statement? i.e.: setcookie("cusername","$username",0,"/","$SERVER_NAME",0); setcookie("cpassword","$password",0,"/","$SERVER_NAME",0); setcookie("cauthlevel","$authlevel",0,"/","$SERVER_NAME",0); Note: Im using PHP3, so I dont have access to Session or foreach. Thanks in advance, ____________________ James C. Montz Systems Engineer Northwest Internet Services "A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine. "

« previous php.general (#22953) next »