As we know that we usually get the session object with the help of systemuser .
but in a servlet we can get session object without creating system user because in servlet we will have request and response object .with the help of these objecyts we can get the session object without creating system user .
whats the difference between both and in which scenerio we will use which one ?
creating system user and then getting session object through resourceresolver is preferrable way , whats the reason behind it ?