[hunchentoot-devel] Newbie question - how to examine session object?

Yarek Kowalik yarek.kowalik at gmail.com
Tue May 6 16:48:02 UTC 2008


I'm guessing that's not being set anywhere...  I'm checking Weblocks now.

Thanks for the feedback.

Cheeers,

Yarek

On Mon, May 5, 2008 at 3:22 PM, Edi Weitz <edi at agharta.de> wrote:
> On Mon, 5 May 2008 12:13:29 -0700, "Yarek Kowalik" <yarek.kowalik at gmail.com> wrote:
>
>  > ----
>  > CL-USER>
>  >  (hunchentoot:session-value :remote-addr (first
>  >                             (weblocks:active-sessions)))
>  > NIL
>  > NIL
>  > ----
>  >
>  > Is that OK?  I'm getting the same values from both the local host
>  > and a remote Windows box -- I was expecting two different IP
>  > addresses for each of the sessions I have now (first and second in
>  > the active session list).
>
>  SESSION-VALUE should return whatever (SETF SESSION-VALUE) put there.
>  So, the question actually is whether someone wrote a session value
>  :REMOTE-ADDR to this session.  Did you do that?  Did Weblocks do that?
>  What do you get if you inspect the corresponding session objects?
>  (The session object maintains an alist of session values in the
>  SESSION-DATA slot.)
>
>  Edi.
>
>
> _______________________________________________
>  tbnl-devel site list
>  tbnl-devel at common-lisp.net
>  http://common-lisp.net/mailman/listinfo/tbnl-devel
>



More information about the Tbnl-devel mailing list