~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/common/util.js

  • Committer: mattgiuca
  • Date: 2008-03-05 06:30:04 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:652
util.js: write_cookie now sets the cookie's path to root_dir, so that
    cookies are shared across the whole of IVLE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
function write_cookie(key, value)
348
348
{
349
349
    var sendstr = encodeURIComponent(key) + "="
350
 
        + encodeURIComponent(JSON.stringify(value));
 
350
        + encodeURIComponent(JSON.stringify(value))
 
351
        + "; path=" + urlencode_path(root_dir);
351
352
    /* This actually just assigns to the key, not replacing the whole cookie
352
353
     * as it appears to. */
353
354
    document.cookie = sendstr;