To acheive what you are after I would suggest:
get value off cookie do we want to add or remove link to cookie value add: add the link, trim if needed to 5 values remove: remove link save new cookie value && redirect to new page.
HTH.
Update: removed comment on html in code.
--tidiness is the memory loss of environmental mnemonics
In reply to Re: CGI cookies: in much need of help
by EvdB
in thread CGI cookies: in much need of help
by matc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |