File: examples.js

Recommend this page to a friend!
  Classes of Stephen Chapman   Cookies   examples.js   Download  
File: examples.js
Role: Example script
Content type: text/plain
Description: examples of each of the possible calls
Class: Cookies
Read, write and delete cookie values
Author: By
Last change:
Date: 10 years ago
Size: 307 bytes
 

Contents

Class file image Download
cookie.write('sessioncookie','sessioncookievalue'); cookie.write('oneweekcookie','sevendayvalue','7'); cookie.write('domaincookie','domainwidevalue',14,'example.com'); cookie.write('foldercookie','foldervalue','2','/yourfolder'); mycookie = cookie.read('oneweekcookie'); cookie.delete('oneweekcookie');