Is there a way to check if a user is logged in by hitting an application URL programmatically using Java or JSP? It generates a cookie named xyz for logged-in users in the browser.
For some reason, every time I call the URL from my Java code, it doesn't find the cookie (xyz) because a new session is created with each request. How can I ensure that my application creates the cookie in the browser so that my code can properly detect it?