<div> </div>
<div>I acknowledge that I may be doing this wrong.</div>
<div> </div>
<div>I have a very trivial hunchentoot server which merely returns a string containing the Hunchentoot SessionID.</div>
<div> </div>
<div>From browsers, this works - subsequent requests do not result in a new session being created.</div>
<div> </div>
<div>However, even (mis?) using the cookie-jar, I end up with new sessions being created.</div>
<div> </div>
<div><br>(let ((jar (make-instance 'cookie-jar)))<br>  (labels ((doit ()<br>             (print (multiple-value-list (http-request <a href="http://mysite.com/">http://mysite.com/</a> :cookie-jar jar)))<br>             (print (cookie-jar-cookies jar))))<br>
    (doit)<br>    (doit)<br>    (doit)<br>    (cookie-jar-cookies jar)))</div>
<div> </div>
<div> </div>
<div>The cookie seems to be replaced with each call, with a new session's cookie.  I imagine hunchentoot uses cookies to track sessions - is the old cookie not being sent back?</div>
<div> </div>
<div>Is there something I am doing wrong?  Is there a way to use Drakma to track a persistent session?</div>
<div> </div>
<div>The set-cookie comes back as hunchentoot-session=xx%yyy - where xx is the session number.</div>
<div> </div>
<div>Thanks,</div>
<div>Matt.</div>
<div> </div>