add $request_type
set cookie path and domain