Help with session needed

From: Date: Fri, 21 Feb 2003 18:27:10 +0000
Subject: Help with session needed
Groups: php.general 
Request: Send a blank email to php-general+get-136549@lists.php.net to get a copy of this message
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

« previous php.general (#136549) next »