I'm designing a server-side application to accept query strings from PDF documents. The user clicks a link in the document to submit some information (i.e. //server/servlet/submit?question=1&answer=true).
The user needs to be identified, and I have been doing that using a login page that stores a cookie. This works fine if the user logs in beforehand, but fails if the user tries to submit an answer before logging in. I want to automatically ask them to fill in their username and password if they are not logged in by popping up a login window.
If the submission is accepted, it shows the user a confirmation page. If the user is not logged in, the submit servlet redirects the user to a login.jsp page.
The problem I run into is that once they are redirected to the login page, I lose their submission information. Is there a better way to get them logged in? Or a way to pass this information while they are in process of logging in?
Thanks to anyone who can help me.