add config session able or disable

sometimes we not need use session store in our web server, e.g: not browser request, like mobile app request , it often not set cookie session in request,so one request,server will generate one session in memory, it watse server  resources.