<?xml version="1.0" encoding="windows-1252"?>
<node id="200618" title="Cookies without CGI.pm" created="2002-09-25 09:53:21" updated="2004-08-21 20:28:43">
<type id="115">
perlquestion</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
I will be running a cgi script on a server that will require basic authentication. As far as I can tell, my options are mangling the url, or with cookies. Well, i'm not going to throw a username and password in the url, so that leaves the use of cookies.
&lt;br&gt;&lt;br&gt;
I have used this &lt;a href="http://www.perlmonks.com/index.pl?node_id=6372"&gt;Thread&lt;/a&gt;  in the past with CGI.pm, but, because of how often this page is going to be accessed I am to find an alternative method for setting the cookies and provide a proof of concept with and without cgi.pm being used.
&lt;br&gt;&lt;br&gt;
My question to you is, how does one go about setting and retrieving cookies in perl without using cgi.pm?
 (telling my supervisor "you don't, use cgi.pm" isn't acceptable without code to back it up :-/ )</field>
<field name="reputation">
7</field>
</data>
</node>
