The user. scripts are server side and cookies are client side. Here is an easy example to do this: http://www.testandtargeting.com/demo/cookie/There is a function that is added to the mbox.js at the bottom and take a look what is added to the mboxCreate.