hunchentoot
hunchentoot copied to clipboard
Using (remove-session) and (start-session) for the same request?
Hi,
I've attempted to start a new session for a GET request, to have a clean session environment for the following POST, by having (remove-session) followed by (start-session). This works sometimes. I'm not exactly sure what the problem is.
The upshot is that the code seems to work now and then. As far as I can tell, if the server sends set-cookie: hunchentoot-session=deleted
and so forth, the session will not work, but when not present -- presumably if there was no session in the first place -- it works, and I have a session with all the relevant session-values for the following POST.
Is there a way to make this work? Or will have to do something else?