clear the cookie for zmMontageLayout

This commit is contained in:
Isaac Connor 2017-11-01 13:07:35 -04:00
parent 0af389c984
commit 96e0959c35
1 changed files with 2 additions and 1 deletions

View File

@ -696,8 +696,9 @@ if ( canEdit( 'System' ) ) {
$Layout->save();
session_start();
$_SESSION['zmMontageLayout'] = $Layout->Id();
setcookie('zmMontageLayout', $Layout->Id(), 1 );
session_write_close();
unset( $_COOKIE['zmMontageLayout'] );
$redirect = true;
} // end if save
} else if ( $_REQUEST['object'] == 'server' ) {