Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting more cookies with 1 script

Status
Not open for further replies.

c4n

Programmer
Mar 12, 2002
110
SI
Hi!

I use this header to set cookies in Perl scripts:

print "Set-Cookie: NAME=$name; expires=$expdate; path=/\n";

($name and $expires are set of course).

How can I set more cookies using one script? This doesn't work:

print "Set-Cookie: NAME=$name1; expires=$expdate1; path=/\n";
print "Set-Cookie: NAME=$name2; expires=$expdate2; path=/\n";

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top