cookie and ObjectApplication

1 view
Skip to first unread message

Martin

unread,
Jul 5, 2006, 11:00:11 AM7/5/06
to colubrid-users
Hi there!

I cannot figure out how I can read a Cookie from the Request with an
ObjectApplication.

I have my own Session management, and there I will need the Cookies to
be read, so there Isn't any connection to my ObjectApplication derived
class, the other object do only

from session import Session

How can I get the cookies there?

Thanks,
Martin

armin.r...@active-4.com

unread,
Jul 5, 2006, 4:42:51 PM7/5/06
to colubrid-users
Hiho,

If you want to read a cookie named 'SESSION_ID' you can do it like
this::

def index(self):
return HttpResponse(self.request.cookies['SESSION_ID'].value)

Regards,
Armin

Reply all
Reply to author
Forward
0 new messages