Does anyone know how to make use of PHP sessions with BlitzMax? I have a function that uses ConnectSocket() to send information to the server, so would assume that there is a parameter in the header that I can use to store the session ID that was returned from the server during a previous information call.
Headers that I'm currently sending include:
Header settings that are being returned from the sign in call to the PHP script:
Headers that I'm currently sending include:
Host: "+host) Content-type: application/x-www-form-urlencoded User-agent: MyApp Content-length: 100 Pragma: no-cache Connection: keep-alive
Header settings that are being returned from the sign in call to the PHP script:
HTTP/1.1 200 OK Date: Sat, 18 Aug 2007 20:07:57 GMT Server: Apache/1.3.33 (Darwin) PHP/4.4.1 X-Powered-By: PHP/4.4.1 Set-Cookie: PHPSESSID=bf466c8240e4beabe8f18f46d8a49b56; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html