By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

multiple key pair values in single cookie

100+
P: 101
How can i store multiple values in key pair manner on a single cookie ?
any example code

Regards,
Jul 29 '08 #1
Share this Question
Share on Google+
5 Replies


acoder
Expert Mod 15k+
P: 16,027
Can you give an example of what you might want to store?
Jul 29 '08 #2

100+
P: 101
Can you give an example of what you might want to store?
There are 15 text boxes that contain some value used for calculation for example.
Dental expense = 45.00
Vision Expense= 55.55 etc

These kind of 15 values....That i have to store and reterive at the page load if cookie exist..

One more thing want to ask...Header & Footer sections are common for all the page.... can we place any kind of check on BODY onload event as I want to use this script on only one page?
Jul 30 '08 #3

acoder
Expert Mod 15k+
P: 16,027
Have you tried this script?
One more thing want to ask...Header & Footer sections are common for all the page.... can we place any kind of check on BODY onload event as I want to use this script on only one page?
Yes, you should be able to attach this code to the body onload event.
Jul 30 '08 #4

100+
P: 101
Have you tried this script?
Yes, you should be able to attach this code to the body onload event.
Thanks for response acoder. I have already created the script using the link provided by you. and i taken multiple value conactinated in a string and seprated by semicolon..this is working fine .

Thanks :)
Jul 30 '08 #5

acoder
Expert Mod 15k+
P: 16,027
You're welcome. Glad to hear that you got it working.
Jul 30 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.