I use cookies in my web applications, but have reached the 4 kB limit. So I
need to 'convert' all my cookies to session variables. Have got an idea how
I can create such for one variable, but here I have multi element cookies.
Reading the php manual gives me no idea on how to do this.
Here's the recipe for my cookies:
function formCookie() {
 var cookieValue = document.$formname.totalAns.value+'|'; // Using '|' to
split each part of the cookie
 cookieValue +=
document.form1.correct.value+'$test[1]'+document.form1.question1.value+docum
ent.form1.answer.value+'|';
 cookieValue +=
document.form2.correct.value+'$test[1]'+document.form2.question2.value+docum
ent.form2.answer.value+'|';

<more lines>

 document.cookie = '$answercookie='+escape(cookieValue)+';expires=';
}

How can I achieve the same using sessions



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to