将apppath写入cookie