On Thu, Jan 7, 2010 at 2:43 AM, andrei <[email protected]> wrote:
> I ended up with patching Session class by adding this:
>
>    self.session_id = web.cookies().get(cookie_name)
>
>    if self.session_id is None:
>        try:
>            self.session_id = cgi.parse_qs(web.ctx.env['QUERY_STRING'])
> ['sessid'][0]
>        except:
>            pass

You can do the same in single line as:

self.session_id =  web.cookies().get(cookie_name) or web.input(sessid="").sessid
-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.


Reply via email to