rewrite to fix any sessionstore

if not define any sessionstore ready,cookiestore default