Servlets and cookies...

S

SigmaCrisis

I'm not sure if this is the right newsgroup for this, but I was
wondering if someone out there has enough knowledge of the Cookie class
to suggest a way to keep more than one value stored in a single cookie.

For instance, everytime a user enters a new value, i would like to add
it to the value already stored in the cookie file. By 'add' I really
mean concatenate. However, I would also like to keep it organized so
that i can extract the values separately.

What I tried doing is having the values stored in a cookie, separated
by commas. However, as I read on the Java.API, "With Version 0 cookies,
values should not contain white space, brackets, parentheses, equals
signs, commas, double quotes, slashes, question marks, at signs,
colons, and semicolons. Empty values may not behave the same way on all
browsers." Has anyone come across this problem before? I even tried
using period (dots) to separate values, but it still gives the same
issue.


Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top