How to get JSON values and how to trace sessions??

Tim Roberts timr at probo.com
Wed Apr 24 02:25:57 EDT 2013


webmaster at terradon.nl wrote:
> 
>But now i am wondering how to trace sessions? it is needed for a
>multiplayer game, connected to a webserver. How do i trace a PHP-session?
>I suppose i have to save a cookie with the sessionID from the webserver?

Yes.  The server will send a Set-Cookie: header with your first response.
You just need to return that in a Cookie: header with every request you
make after that.

>Are their other ways to keep control over which players sends the gamedata?

Not sure what you mean.  If the web site requires cookies, this is what you
have to do.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list