Improve request cookie functionality