From 96e0959c35b8bb4dfa58aa446361d25734dff917 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 1 Nov 2017 13:07:35 -0400 Subject: [PATCH] clear the cookie for zmMontageLayout --- web/includes/actions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/includes/actions.php b/web/includes/actions.php index 1d8ae70f4..24184d7db 100644 --- a/web/includes/actions.php +++ b/web/includes/actions.php @@ -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' ) {