Cookies can only take simple text values. That said, you can store multiple variables in one cookie by using field delimiters, then parsing them out to individual variables. Or better, just store one variable in the cookie and use it as a key to lookup everything you need from a database table.

I hope your examples are just examples because you should never store passwords in a cookie. Cookies are stored in a cookie file which can be accessed by anyone using the computer, or indeed viewable in the browser's "view cookies" option.

[EMAIL PROTECTED] wrote:
Hi

Is it possible to store several variables within one cookie e.g. have a
cookie called userIDs and have userID_1 = password1, userid_2 = password2,
userid_3 = password3 all stored within this one cookie.  If this is
possible, how would I go about accessing, say userID_2 from that one main
cookie.

The reason I ask this is that my application uses several cookies and I've
just found out that IE will only let you stored 20 cookies per site.

Thanks for your help

Neil H
UK (not London thankfully!)

This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments..

Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons..

Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group.

Barclays Bank PLC.Registered in England and Wales (registered no. 1026167).
Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom.

Barclays Bank PLC is authorised and regulated by the Financial Services 
Authority.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/


--
Regards: Ayudh

+----------------------------------------------------------------+
| SOAP is the glue! Hook up your server directly to your bank.   |
| Connect to VeriPay xServ, the Australian Payments Web Service. |
| Reliable, Secure, FAST: http://www.xilo.com/xserv              |
+----------------------------------------------------------------+


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to