session module added replaceSession