[Flow] Creating simple UnitTests (RestController)
Peter R
peter at webschuppen.com
Thu Apr 3 12:18:13 CEST 2014
Hello Christian,
how can I keep the session id alive?
Everytime when I doing something like:
$request = Request::create(new Uri('http://localhost/api/v1/auth'), 'POST');
$response = $this->browser->sendRequest($request);
$request = Request::create(new Uri('http://localhost/api/v1/standard'), 'GET');
$request->setHeader('SessionId', $response->getContent());
$response = $this->browser->sendRequest($request);
The second request should have the same session like in the first one, but a new started and this is bad.
Peter
More information about the Flow
mailing list