Hi All,
I have concern regarding session creation in spring 4. 1. When ever any
jsp page is rendered from server, spring creates session. for example url is GET /login, then Login.jsp served and session is automatically created and sent with response.It is affecting my session handling,because i have filter which executes before Dispatcher
servlet and checks for the session if session is not active it redirects to login, but after login.jsp page is rendered then it creates session.so once page is passed to user his session gets activated and he can access the protected resource. I can solve this problem by adding some tokens but Is there any way by which we can prevent session creation? I'm using spring 4. I'v tried SessionCreationPolicy.stateless and others but didn't work. How to prevent session creation?
Thanks