Restore variables before manipulate cookie