I am dealing with some data from my dataBase, on my PHP(html) page.
So before the Html code starts I put some PHP code, and I want to "live" (edit note: probably "leave" or "give") my html page some text data, so the js will deal with it.
I've created it like that:
<?php
/*some code.. */
setcookie("name","**BIG DATA**");
?>
<html>
<!--All the HTML code-->
</html>
Because the data in the cookie is big, it sends me the
"Bad Request" error page, and it blocks all my site. So I needed to delete all my cookies in my browser so it will continue to work.
I've tried to divide it to an array of cookies, so each cookie will be about 300 chars, but it doesn't help...