PDA

View Full Version : max cookie length? is it possible


questionable
03-29-2006, 01:49 AM
Hello again everyone,

I have a situation. So without further a do. I have a program that writes a bunch of html code into "document.cookie". After this it refreshes an iframe with the html code.
var=document.cookie <-- with minor tweeking to make it work
document.write(var)
Anyway this was working fine... actually great and then it just seemed to crash.
When I use alert(document.cookie) I get a full screen for a code. <-- when program works...
If I add more code (to document.cookie) and do alert(document.cookie) I get a message box with absolutly nothing.
So I'm assuming that document.cookie has a maximum length.

Is this true?
To get around this problem should I just create a hidden textarea and pull the code out of there?

-Questionable

liorean
03-29-2006, 01:58 AM
Read the FAQ, you can find the answer to your question there.

questionable
03-29-2006, 04:32 AM
Thanks... man I feel like a noob sometimes :(