Skip to content

Commit

Permalink
Mods from C.Scott Ananian/Verified Voting: Add 'session_write_close()…
Browse files Browse the repository at this point in the history
…' before emitting header('Location: foo'),

as per suggestions at http://us4.php.net/manual/en/function.header.php - related to autoreload function recently added.


git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1227 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Oct 2, 2004
1 parent f4d5b53 commit b814146
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions group.php
Expand Up @@ -156,6 +156,7 @@
if (isset($thissurvey['autoredirect']) && $thissurvey['autoredirect'] == "Y" && $thissurvey['url'])
{
//Automatically redirect the page to the "url" setting for the survey
session_write_close();
header("Location: {$thissurvey['url']}");
}

Expand Down
3 changes: 2 additions & 1 deletion index.php
Expand Up @@ -278,7 +278,8 @@
session_destroy();
sendcacheheaders();
if (isset($_GET['redirect'])) {
header("location: {$_GET['redirect']}");
session_write_close();
header("Location: {$_GET['redirect']}");
}
echo "<html>\n";
foreach(file("$thistpl/startpage.pstpl") as $op)
Expand Down
1 change: 1 addition & 0 deletions question.php
Expand Up @@ -136,6 +136,7 @@
if (isset($thissurvey['autoredirect']) && $thissurvey['autoredirect'] == "Y" && $thissurvey['url'])
{
//Automatically redirect the page to the "url" setting for the survey
session_write_close();
header("Location: {$thissurvey['url']}");
}

Expand Down
1 change: 1 addition & 0 deletions survey.php
Expand Up @@ -144,6 +144,7 @@
if (isset($thissurvey['autoredirect']) && $thissurvey['autoredirect'] == "Y" && $thissurvey['url'])
{
//Automatically redirect the page to the "url" setting for the survey
session_write_close();
header("Location: {$thissurvey['url']}");
}

Expand Down

0 comments on commit b814146

Please sign in to comment.