actually i figured it out anyway. didnt know about the 20 cookie limit, but no biggy, i am only doing 2 and everything else will be serverside. but i will check out your class because maybe then I will just jam stuff into the cookie instead.
ok i have to share.
This little methodology is working pretty well for me so far. I am sure I will paint myself into a corner at some point, but so far so good
Obviously I am leaving out a bunch of stuff, but the response is JSON.
function handleAjax(sender)
{
var arr = eval('(' + sender.lastResponse + ')');
for (var i in arr['display'])
{
document.getElementById(arr['display'][i]['parentid']).innerHTML = arr['display'][i]['html'];
}
for (var i in arr['cookie'])
{
Set_Cookie( arr['cookie'][i]['name'], arr['cookie'][i]['value'], arr['cookie'][i]['days']);
}
}
its pretty cool. I can send back an arbitrary number of things, and they all loop and get processed.
idunno i just had to share.
I now have a login,registration,forgot password popup box done. all ajax. yeay me.