Revision 286
Added by stefan almost 19 years ago
index.php | ||
---|---|---|
32 | 32 |
|
33 | 33 |
// Check if the page has been reloaded |
34 | 34 |
if(!isset($_GET['sessions_checked']) OR $_GET['sessions_checked'] != 'true') { |
35 |
// Set session variable |
|
36 |
$_SESSION['session_support'] = '<font class="good">Enabled</font>'; |
|
37 |
// Reload page |
|
38 |
header('Location: index.php?sessions_checked=true'); |
|
35 |
// Set session variable |
|
36 |
$_SESSION['session_support'] = '<font class="good">Enabled</font>'; |
|
37 |
// Reload page |
|
38 |
header('Location: index.php?sessions_checked=true'); |
|
39 |
exit(0); |
|
39 | 40 |
} else { |
40 | 41 |
// Check if session variable has been saved after reload |
41 | 42 |
if(isset($_SESSION['session_support'])) { |
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.