I want to achieve a task whenever session.setAttribute and session.getAttribute is called I will catch that event and append key with some unique value.
For eg : session.setAttribute("userId","123") I will catch this event and append session.setAttribute("userId"+Guid,"123")
and for session.getAttribute("userId") will catch this event and append session.getAttribute("userId"+Guid)
and return response accordingly.
Is there any way to do this basically I am doing this because I want to use same session for multiple users using same browser tab.
So I will have some unique value in tab specific cookies and will get it in every request and will fetch user data using session.setAttribute("userId"+Uniqueid from Cookie which I have stored) and same for getAttribute.
I don't want to user url rewriting.