multivalue cookies

J

Joel Barsotti

In asp3, you could set a multivalue cookie by doing something like this

Response.Cookies("login")("user") = Session('user');
Response.Cookies("login")("password") = Session('password');
Response.Cookies("login")("version") = Application('cookieVersion');

I can't seem to find a way to do anything similiar with the HttpCookie
object, is there something that I'm missing or do I need to manage a cookie
for each value I want to set these days?
 
J

Joel Barsotti

yup that's exactly what I'm looking for

S. Justin Gengo said:
Joel,

I think this is what you're looking for:

Response.Cookies("login").Item("user") = Session('user');
Response.Cookies("login").Item("password") = Session('password');

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top