×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: bejoy balan
Added: Mar 10, 2015 5:28 AM
Views: 19
cookie set cookie in javascript
  1.  
  2. ;
  3. //var L="__bejoyid=; expires=Sun, 08 Mar 2015 13:49:29 GMT; path=/";
  4. //document.cookie=L;
  5. var L="__bejoyid=test bejoy; expires=Tue, 08 Mar 2016 13:56:03 GMT; path=/; domain=.indianic.com"
  6. document.cookie=L;