Not exactly, not with this script the way that it is, and not really period in that doing so depends upon cookies and the user could always delete the cookie.
You could edit the script. Using a text only editor like NotePad, where it has:
Code:
if (typeof sessiononly!="undefined") //set session only cookie?
persistobj.setCookie(windowname, "shown")
}
Make that:
Code:
if (typeof sessiononly!="undefined") //set session only cookie?
persistobj.setCookie(windowname, "shown", typeof sessiononly === 'number'? sessiononly : '')
}
Then when you're using the open command, instead of specifying true or some string for sessiononly, specify an unquoted number, such as 365, which will set the cookie for a year. Each time the user revisits the page, as long as they have cookies enabled and haven't deleted this one yet, a new 1 year cookie will be set.
The browser cache may need to be cleared and/or the page refreshed to see changes.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks