memcache

17 views
Skip to first unread message

Dilvane

unread,
Feb 27, 2012, 4:09:21 PM2/27/12
to gae-sessions
Hello everyone.

With gae-sessions I can only save the data in memcache, without using
cookies?
And send a 'token' and receive through the url? http://localhost/?token=x
Or in the http header?

Thanks.

David Underhill

unread,
Feb 28, 2012, 1:32:00 AM2/28/12
to gae-se...@googlegroups.com
On Mon, Feb 27, 2012 at 13:09, Dilvane <dilvanez...@gmail.com> wrote:
Hello everyone.

With gae-sessions I can only save the data in memcache, without using
cookies?

Sure.  Check out the readme for how to enable memcache-only mode (and disabling cookies).
 
And send a 'token' and receive through the url? http://localhost/?token=x
Or in the http header?

Sure.  You can retrieve sessions by session ID, so as long as you're passing that you can retrieve the session ID.  Personally, I'd prefer to keep the session ID in a cookie though so it is muddying up the URLs.

~ David

 

Thanks.

Dilvane

unread,
Feb 28, 2012, 7:01:25 AM2/28/12
to gae-sessions
Ah ok.

I intend do a custom http header, like:
mySID: sid

I will retrieve the sid, but only with sid how can i "restart" the
session?
maybe: Session(sid=MySID)?

Thanks David.

On 28 Fev, 06:32, David Underhill <d...@cs.stanford.edu> wrote:
> On Mon, Feb 27, 2012 at 13:09, Dilvane <dilvanezanard...@gmail.com> wrote:
> > Hello everyone.
>
> > With gae-sessions I can only save the data in memcache, without using
> > cookies?
>
> Sure.  Check out the readme for how to enable memcache-only mode (and
> disabling cookies).
>
> > And send a 'token' and receive through the url?http://localhost/?token=x

Dilvane

unread,
Feb 28, 2012, 1:38:43 PM2/28/12
to gae-sessions
Hi,

I did the __read_cookie() method read my custom http header.

Thanks. =D
Reply all
Reply to author
Forward
0 new messages