You could try making the javascript redirect to another page after it's done its work, and that other page can set the cookies.
In reply to Re: Execute javascript before setting cookie headers
by ambrus
in thread Execute javascript before setting cookie headers
by Vertigo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |