I had a similar problem with a webook.

In my case I read the HTTP POST with request.body.read()

Chek it here: 
http://web2py.com/books/default/chapter/29/04/the-core?search=request.body.read%28%29

And this example: http://www.web2py.com/AlterEgo/default/show/197

On Sunday, February 13, 2011 11:29:36 PM UTC, AsmanCom wrote:
>
> I can see the stored data, but I just do not know how  to extract the 
> required values, 
>
> Do I have to unpickle these files somehow, or is there perhaps a more 
> framework-conform-approach to query these two values? 
>
> I would not like to import external libraries for this. 
>
> I thought querying user_name/is_logged_in by session_id would be a 
> basic built in functionality... 
>
> THX 
>
> Dieter Asman 
>
>
> On 13 Feb., 15:54, Massimo Di Pierro <[email protected]> 
> wrote: 
> > The session it is the name of the sessions file under app/sessions. It 
> > is a pickle. Try open it and see what is inside. 
> > 
> > On Feb 13, 6:43 am, AsmanCom <[email protected]> wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Does nobody know, how to query these two values by the given 
> > > session_id (session_id_myapp=127.0.0.1-2b77d424-4e72-4d3f-a0de- 
> > > badbcdbe6a30)? 
> > 
> > > 1. is_logged_in (boolean) 
> > > 2. username or user email (string) 
> > 
> > > I looked in the book, i´ve searched this group, i´ve searched the web, 
> > > but still can´t find any Solution... 
> > 
> > > So could anyone, who knows about the auth-process, please take a look 
> > > at it. 
> > 
> > > Thanks in advance. 
> > > Dieter Asman

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to