2 http_redirect() with session
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
11 http_redirect('redirect', array('a' => 1), true);
15 Content-type: text/html
17 Set-Cookie: PHPSESSID=%s; path=/
21 Location: http://localhost/redirect?a=1&PHPSESSID=%s