set cookie for sidebar control