Revision 1935
Added by darkviper over 12 years ago
| upgrade-script.php | ||
|---|---|---|
| 20 | 20 |
* |
| 21 | 21 |
* |
| 22 | 22 |
* @category Core |
| 23 |
* @package Core_package
|
|
| 23 |
* @package Core_service
|
|
| 24 | 24 |
* @subpackage upgrade-script |
| 25 | 25 |
* @author Dietmar Wöllbrink <dietmar.woellbrink@websitebaker.org> |
| 26 | 26 |
* @author Werner v.d.Decken <wkl@isteam.de> |
| ... | ... | |
| 341 | 341 |
//} |
| 342 | 342 |
|
| 343 | 343 |
// delete remember key cookie if set |
| 344 |
if (isset($_COOKIE['REMEMBER_KEY'])) {
|
|
| 344 |
if (isset($_COOKIE['REMEMBER_KEY']) && !headers_sent() ) {
|
|
| 345 | 345 |
setcookie('REMEMBER_KEY', '', time() - 3600, '/');
|
| 346 | 346 |
} |
| 347 | 347 |
|
| ... | ... | |
| 355 | 355 |
// overwrite session array |
| 356 | 356 |
$_SESSION = array(); |
| 357 | 357 |
// delete session cookie if set |
| 358 |
if (isset($_COOKIE[session_name()])) {
|
|
| 358 |
if (isset($_COOKIE[session_name()]) && !headers_sent()) {
|
|
| 359 | 359 |
setcookie(session_name(), '', time() - 42000, '/'); |
| 360 | 360 |
} |
| 361 | 361 |
// delete the session itself |
Also available in: Unified diff
fixed headers_sent problem in /upgrade_script.php
fixed problem with output buffer in /search/search_modext.php