Hi everyone.
My requirement is to forcefully logout user after some specific time (say 12 hrs). For logging out we will delete the user cookie created during login. We are thinking to use doFilter to achive this. When a user logs in we will add timestamp to user cookie and then on every subsequent request we will check current time - user login time > 12 then we will delete the user cookies.
This doFilter code is working fine. I am getting what I need.
But what I observe that now every request to CQ is coming to this Filter. Will this cause performance issue on production since any activity on site will come to doFilter ? Is there any other better way to achieve this ?
Any setting I can do in doFilter ?
Thanks in advance.