Link to home
Start Free TrialLog in
Avatar of AlexanderMaxwell
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.
Avatar of mrcoffee365
mrcoffee365
Flag of United States of America image

Post your code, and we should be able to help you with this.

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.
>I get random letters and characters.
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
Avatar of mrcoffee365
mrcoffee365
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexanderMaxwell
AlexanderMaxwell

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.