Automatically set cookie on arrival