new feature: support local mode for cookie posison

Signed-off-by: jason <liu_yt@neusoft.com>