Quote:
Originally Posted by Digital Jedi
See, this is what I get for going away right before you posted the mod. I didn't get to act all indignant and shake fists and stuff before anyone noticed. There was an actual tin can I was going to kick.
I know, I know. I'm ten. 
|
Haha, aren't we all
Quote:
Originally Posted by Digital Jedi
I was never able to sit down and come up with a logical way to handle the tabs via the Admin CP. I like how you've handled it. I haven't got a chance to install this yet, but did you run into any issue with persistent tabs? The JavaScript I was using, for some reason I never pinpointed, kept logging people out when set to persistent.
|
Nope, no cookie issues reported thus far.
Could it be that the cookie you were setting somehow overwrote the userid or password cookies, or some other part of it caused those cookies to be deleted?
These are the functions I use:
Code:
function setCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function deleteCookie(name) {
setCookie(name,"",-1);
}
Fillip