Question

I am using Scriptable web browser (simplebrowser) http://www.lastcraft.com/browser_documentation.php and it does not seem to have a way to:

  1. session_start();
  2. set the PHPSESSID value
  3. Browse to few pages using simplebrowser
  4. session_destroy();

so it might be possible to use php functions to setup and maintain a session using PHPSESSID

Was it helpful?

Solution

The session is started by the script that you request with simplebrowser. Lets assume you call example.com/script.php with simplebrowser. Then script.php contains session_start() and thus sends a cookie along with the response. You do not have to start and maintain a session for simplebrowser, let alone set the SID yourself.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top