Hi Falsam, thanks for your help. Set a own Cookie works as expected, but reading the cookie, that comes from the server seems not readable.
But thats not the main problem.
I‘ll use an api. The first http request is the login. It works. The server sends success. In the response header I can see a parameter cookie with includes an PHP Session ID.
The next http request fails with error „not authorized“. I guess, the SessionID is missed. How to handle an PHPSessionID?
You you can use $tfname as a variable which holds the ID wherever you want i your PHP script.
You may run a httprequest() in SB to your server and return the SESSIONID if you want to use the SESSIONID in SB app.
Another way to use SESSIONID information is to readout the cookie information of browser.
Unfortunately, none of this helps if you start the SpiderBasic code from the IDE with F5.
In this case the PHP script (or rather the server) generates a new session-ID for every HTTPRequest() coming from SpiderBasic.
Even if you were able to successfully log in into a PHP login page at the first HTTPRequest and store this inforrmation into a session variable, the server will "forget" this information at the next HTTPRequest.
But as I said, the suggestion in the german forum from Kiffi solves this problem (see the link in my upper post).
Markus
SB 2.32 x86, Browser: Iron Portable V. 88.0.4500.0 (Chromium based), User age in 2023: 55y "Happiness is a pet." | "Never run a changing system!"
@kurzer
I can't agree. As I know the PHPSESSIONID is kept until the browser is closed. In my tests the SESSIONID is always the same until I restart browser.
By the way, you can restart the app with F5 but this keeps the cache. If you use STRG+F5 the cach is deleted.
I always restart the app with STRG+F5