AlexanderMaxwell
asked on
I am trying to display the value of a cookie in a jsp page; however, instead of displaying the users email, I get random letters and characters.
I am trying to display the value of a cookie in a jsp page; however, instead of displaying the users email, I get random letters and characters.
>I get random letters and characters.
Could that be the session id ?
Try
<%=cookie.getName()%>
Could that be the session id ?
Try
<%=cookie.getName()%>
I think I mislead you in your last question. Try redirecting instead of forwarding.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that works, but along with the email I'm storing in the cookie, I'm getting something that looks like hex code. I'll try to post my code.
In that case, I bet rrz@871311 is right and you're seeing the session id. That shouldn't be a problem, so you'll need to post enough of your code with an explanation of what you don't like about the results for us to help you.
We print cookie values to debugging pages, and it's fine. So it works, there must be something about the way you're doing it.