* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Shantanu Oak ([EMAIL PROTECTED]): > > Hi, > > I have written a feed reader for my personal use. The > > php code given below does work. But it works only with > > a single feed. How can I save multiple cookies > > (array?) and display a few more RSS feeds. The example > > page can be found at... > > http://shantanuoak.com/test1.php > > I would not store the urls in a cookie, but use sessions. Cookies have > limits on how long your data can be and how many you can have.
Ok, I had to look this up... <rfc 2901 6.3> Furthermore, general-use user agents should provide each of the following minimum capabilities individually, although not necessarily simultaneously: * at least 300 cookies * at least 4096 bytes per cookie (as measured by the size of the characters that comprise the cookie non-terminal in the syntax description of the Set-Cookie header) * at least 20 cookies per unique host or domain name </rfc> So a serialize string such as figuring most rss fees will have special data in them: $rss[]=http://www.google.com/search?q=asdf&sourceid=opera&num=0&ie=utf-8&oe=utf-8 yields 92 bytes, leaving you have around 40(max) different feeds stored on the client. Minus any other cookies you may want to store. Now even if that doesn't discurage you from using cookies. <rfc 2901 6.3 last sentence> Applications should use as few and as small cookies as possible, and they should cope gracefully with the loss of a cookie. </rfc> HTH, Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php