Help with session needed
| From: | �ystein H�land | Date: | Sun, 09 Mar 2003 20:18:33 +0000 |
| Subject: | Help with session needed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138878@lists.php.net to get a copy of this message | ||
Today I collect information from several forms and store it in a cookie:
function formCookie() {
var cookieValue = document.$formName.totalAns.value+'|';
cookieValue
+=document.form1.correct.value+'$test[1]'+document.form1.question1.value+doc
ument.form1.answer.value+'|';
cookieValue
+=document.form2.correct.value+'$test[1]'+document.form2.question2.value+doc
ument.form2.answer.value+'|';
<more lines>
document.cookie = '$ansCookie='+escape(cookieValue)+';expires=';
}
The problem is the cookie soon reaches the 4 kb limit, so I would like to
achieve the same using session. The trouble is, I don't know how to do. I
would appreciate any help that brings me closer to a solution on this.