I am using java servlet with google app engine.
I need a secure way to pass a pass and user name from one servlet to other.
what is a good way?
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the data needs to be request scoped, just pass it as request attribute.
In the other servlet it’s available as:
If the data needs to be session scoped, just store it in the session scope. This also survives redirects.
In the other servlet it’s available as:
There’s absolutely no need to encrypt this information as it isn’t exposed in public. The data is entirely stored in server memory. I only wonder how it’s useful to pass passwords around. You usually keep them in the database which is been validated upon login and then only pass the user identifier around.