[hunchentoot-devel] session-value

Trying to update a project from 0.15.6 to 1.1.1. (setf (session-value 'x) 42) throws error 'called session with unpaired keyword'. What am I missing? Jens

Hi Jens, does hunchentoot-test work for you? Did you look at the source of hunchentoot-test to see whether it uses session-value the same way? -Hans On Sat, Jul 16, 2011 at 5:54 PM, Jens Teich <info@jensteich.de> wrote:
Trying to update a project from 0.15.6 to 1.1.1.
(setf (session-value 'x) 42) throws error 'called session with unpaired keyword'.
What am I missing?
Jens
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

Yes hunchentoot-test does work, but if I try (hunchentoot:define-easy-handler (say-yo :uri "/yo") (name) (setf (hunchentoot:content-type*) "text/plain") (setf (session-value 'test) 42) (format nil "Hey~@[ ~A~]!" name)) I see the error. Jens Am 16.07.11 18:37, schrieb Hans Hübner:
Hi Jens,
does hunchentoot-test work for you? Did you look at the source of hunchentoot-test to see whether it uses session-value the same way?
-Hans
On Sat, Jul 16, 2011 at 5:54 PM, Jens Teich<info@jensteich.de> wrote:
Trying to update a project from 0.15.6 to 1.1.1.
(setf (session-value 'x) 42) throws error 'called session with unpaired keyword'.
What am I missing?
Jens

On Sat, Jul 16, 2011 at 6:43 PM, Jens Teich <info@jensteich.de> wrote:
Yes hunchentoot-test does work, but if I try
(hunchentoot:define-easy-handler (say-yo :uri "/yo") (name) (setf (hunchentoot:content-type*) "text/plain") (setf (session-value 'test) 42) (format nil "Hey~@[ ~A~]!" name))
I see the error.
Works for me. You need to debug more. Do you use quicklisp? -Hans

Am 16.07.11 19:05, schrieb Hans Hübner:
On Sat, Jul 16, 2011 at 6:43 PM, Jens Teich<info@jensteich.de> wrote:
Yes hunchentoot-test does work, but if I try
(hunchentoot:define-easy-handler (say-yo :uri "/yo") (name) (setf (hunchentoot:content-type*) "text/plain") (setf (session-value 'test) 42) (format nil "Hey~@[ ~A~]!" name))
I see the error.
Sorry stupid mistake. Missing hunchentoot:sess... Thanks Jens
participants (2)
-
Hans Hübner
-
Jens Teich