add cookie to redirect