Now, here's a real problem (as opposed to my previous post
). I have implemented a mechanism in my application which automatically redirects the user to the login page if he/she is not logged in. This mechanism relies on the fact that I have to have the user's data in the session scope, so it basically ask the session for the User object and it this is null forwards the user to the login page.
There are some portions of my application where I used AJAX, and this is where the problem appeared. Wherever I click a link which is supposed the give me the response via AJAX (in a certain div on my page) and the session expired I get the login page in that div - no need to tell you how that's a big no-no.
Does anyone has any idea how I can solve this problem ?
Thanks a lot,