durusmail: quixote-users: Where's my cookie?
Where's my cookie?
2004-01-15
Where's my cookie?
Daniele Varrazzo
2004-01-15
Hi everbody,

I'm a newbie in Quixote objects model, so I don't know if I'm missing something
obvious. Sorry about that... anyway:

I wrote a form to manage an object stored into the session: before entering the
form I read it from a db and pickle in the session; the form always work on the
session object; on submit the db is updated. Everything works fine up there.

My object is a graph, and the previous form only manages some global graph
properties. In order to edit the graph nodes, I have some links that specify
(via get) which node they have to work on: I want to read them from the session.
But when I follow one of these links I found my cookie empty.

Am I doing something wrong? When leaving a form via a a link, is the session id
automatically preserved (that means something is not working properly) or I have
to pass it by hand (via get? via http header?)

I am using a subclassed version of Session: it is only stored when new data are
put into it. Is there something I should be aware when dealing with forms? I
still don't understand the form tokens methods...

Any help would be really appreciated. Thanks in advance.

Daniele




reply