Set and set cookie in php and js