Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: XML & Cookies

by erasei (Pilgrim)
on Jul 23, 2002 at 15:38 UTC ( #184455=note: print w/replies, xml ) Need Help??


in reply to XML & Cookies

If you are passing a large amount of XML data into the cookie it might be the problem. According to Cookie Central's FAQ there is a 4k size limit on HTTP Headers, which Cookies are a part of. Granted, 4k is massive for a header, but, passing XML data via a cookie could hit that pretty easily I suppose.

As I stated as a reply to your other post today there might be other ways of accomplishing that you are after. Having XML stored locally could get really out of hand from a security stand point.

How about you give us a full overview of what you are trying to do, and we will offer you some advice on the best way to do it overall.

Replies are listed 'Best First'.
Re: Re: XML & Cookies
by Tomte (Priest) on Jul 23, 2002 at 21:12 UTC
    there is a 4k size limit on HTTP Headers, which Cookies are a part of.

    And depending on the browser on the client side you won't even have 4k.
    I can't remember if it was netscape 4 or IE 5, but one of them stored only up to 1k. Anoying behaviour, as the cookie-content was carefully crafted not to exceed 4k, but relied on having at least that much

    Just to share the experience ;-)
    regards,
    Tomte
Re: Re: XML & Cookies
by hotshot (Prior) on Jul 24, 2002 at 07:45 UTC
    the thing I'm trying to do is filling a client page with user's data (using JavaScript) and send it back to the server through a cookie using XML format, the volume of the user's data is quite big(but yet less then 4k !!!) so I prefer to send it via cookie instead of POST or GET in order to achieve faster performances

    Thanks.

    Hotshot

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184455]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-08-15 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?