Re: [web2py] Re: Httponly for cookies/sessions

2013-01-14 Thread Vasile Ermicioi
session.connect(cookie_key='your_key', compression_level=9) and after that session['a_key']='a_value' --

[web2py] Re: Httponly for cookies/sessions

2013-01-14 Thread Mark Li
Yep that did the trick, thanks Anthony! On Monday, January 14, 2013 2:45:21 PM UTC-8, Mark Li wrote: > > I haven't found anything in the web2py documentation about setting the > httponly attribute for cookies and sessions. > > For sessions, there is session.secure() to set the session cookies to

[web2py] Re: Httponly for cookies/sessions

2013-01-14 Thread Anthony
> For sessions, there is session.secure() to set the session cookies to > secure, is there a similiar method to setting the httponly option for > session cookies? > No. > Also for regular cookies, the following would make the cookie secure > > response.cookies['mycookie']['secure'] = True >

[web2py] Re: Httponly for cookies/sessions

2013-01-14 Thread Mark Li
On Monday, January 14, 2013 2:45:21 PM UTC-8, Mark Li wrote: > > I haven't found anything in the web2py documentation about setting the > httponly attribute for cookies and sessions. > > For sessions, there is session.secure() to set the session cookies to > secure, is there a similiar method t