SEO, SEM, Web, eCommerce, iOS and Android

let us make technology work for you

  • Home
  • About
  • Development
    • Apple App Development
    • Facebook App Development
    • Mobile Web Development
    • Scratch Development
    • Mobile Applications Development
    • Mobile Game Development
    • Scriptcase Developer
    • Phonegap Developer
    • Gamesalad Developer
    • iPad Developer
    • jQuery Mobile HTML5 Developer
    • WordPress eCommerce
  • Training
    • iOS App Training
    • Facebook App Training
    • Mobile Web Training
    • Scratch Training
    • Mobile Apps Training
    • Mobile Games Training
    • Scriptcase Training
    • Phonegap Training
    • Gamesalad Training
    • iPad Apps Training
    • jQuery Mobile HTML5 Training
    • WordPress eCommerce Training
  • iTunes Apps
    • Smart Tools
    • Pre School
    • Pre School – Journey with Jojo
    • Khet
    • Konnekt
    • Save The Unicorn
    • Red Riding Hood
    • Blink and Lose
    • Rat on Pipe
    • Wheels on The Bus Go Round
    • Bubbles Burst
    • Teach me Kate
    • Arduino Quick Reference
    • Arduino Simulator Full Pack
    • Arduino Simulator – Learn and DIY Safely
    • Arduino Simulator 2x – Learn and DIY Safely
  • Google Play Apps
    • Alphabet Train
    • English Grammar
    • Wheels On The Bus
    • Kids Zoo Animal & Bird Sounds
    • Alphabet Phonics for Kids
    • Bhagavad Gita
    • Learn English Grammar
    • Wheels On The Bus
  • Payment Modules
    • Magento
      • First Data E4 Webservice API
      • First Data E4 Global Gateway
  • Legal
    • Privacy Policy
    • Terms of Use Agreement
  • Contact
Categories
  • Adobe Air (6)
  • Amazon S3 and CloudFront (4)
  • Apache Tips (1)
  • Apple MAC (74)
  • Arduino (74)
  • Automotive (7)
  • Blackberry (17)
  • Browsers (21)
  • C (11)
  • Corona (531)
  • DHTML (2)
  • Dreamweaver (6)
  • Drupal (27)
  • Electronics (132)
  • Flex Builder (9)
  • General (176)
  • Google (571)
    • Android (530)
    • Google Phone (35)
  • Health and Well being (13)
  • Hosting (1)
  • HTML & CSS (53)
  • HTML5 (26)
  • iPad (488)
  • iPhone (1196)
    • Box 2d (237)
    • Cocoa (189)
    • Cocos2d (455)
    • Cocos2d x (30)
    • Monkey (2)
  • Itunes App Store App (1)
  • Javascript (83)
  • Joomla (18)
  • jQuery (45)
  • JSP (7)
  • Linux (9)
  • Linux Tips (12)
  • Mac OS X (132)
  • Magento eCommerce Tips (30)
  • Magento eCommerce Tips (50)
  • Marketing (36)
  • Microsoft (11)
  • MySQL Tips (10)
  • News and Events (188)
  • Nokia/Symbian (3)
  • Objective C (517)
  • PhoneGap (4)
  • Photoshop (3)
  • PHP (86)
    • CakePHP (1)
    • Yii (5)
  • PrestaShop (13)
  • Ruby on Rails (1)
  • Ruby on Rails (2)
  • Security (7)
  • Sencha (61)
  • SQL (18)
  • Tips and Tricks (212)
  • Titanium (1)
  • Uncategorized (113)
  • Windows Phone 7 (79)
  • wordpress (24)
  • XAMPP (4)
  • XHTML (4)
Archives
99designs.com

Archive for 'cookies'

How to set,get and delete cookies using Javascript?

Thursday, May 10th, 2012 at 12:53 pm  
Leave your comment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function setCookie (name, value, expires, path, domain, secure){
 
var today = new Date();
 
today.setTime(today.getTime());
 
if (expires){
 
expires = expires * 1000 * 60 * 60 * 24;
 
}
 
var expires_date = new Date( today.getTime() + (expires));
 
document.cookie = name+'='+escape( value ) +
 
((expires) ? ';expires='+expires_date.toGMTString() : '' ) + //expires.toGMTString()
 
((path) ? ';path=' + path : '' ) +
 
((domain) ? ';domain=' + domain : '' ) +
 
((secure) ? ';secure' : '' );
 
}
 
function getCookie(name){
 
var start = document.cookie.indexOf( name + "=" );
 
var len = start + name.length + 1;
 
if ((!start) && (name != document.cookie.substring( 0, name.length))){
 
return null;
 
}
 
if (start == -1) return null;
 
var end = document.cookie.indexOf(';', len);
 
if (end == -1) end = document.cookie.length;
 
return unescape(document.cookie.substring(len, end));
 
}
 
function deleteCookie (name, path, domain){
 
if (getCookie(name)) document.cookie = name + '=' +
 
((path) ? ';path=' + path : '') +
 
((domain) ? ';domain=' + domain : '' ) +
 
';expires=Thu, 01-Jan-1970 00:00:01 GMT';
 
}

Blogroll
  • Development Blog
  • Documentation
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes
  • WordPress Planet
  • Wordpress Themes
Pages
  • Alphabet Train
  • About
  • Alphabet Phonics for Kids
  • Already Requested the Quote
  • Android sample page
  • Apple App Development – Apple App Developer
  • Arduino Quick Reference
  • Arduino Simulator – Learn and DIY Safely
  • Arduino Simulator 2x – Learn and DIY Safely
  • Arduino Simulator 2x – Learn and DIY Safely
  • Arduino Simulator Full Pack
  • Bhagavad Gita
  • Blink and Lose
  • Blink and Lose
  • Bubbles Burst
  • Bubbles Burst
  • Checkout
    • Purchase History
    • Transaction Failed
  • Contact
  • Disclaimer
  • English Grammar
  • English Grammar
  • Facebook App Development
  • Facebook App Training
  • Five Little Monkeys
  • Gamesalad Developer
  • Gamesalad Training
  • Google Play Apps
  • Home
  • iOS App Training
  • iPad Apps Training
  • iPad Developer
  • iTunes Apps
  • jQuery Mobile HTML5 Developer
  • jQuery Mobile HTML5 Training
  • Khet
  • Khet
  • Kids Zoo Animal & Bird Sounds
  • Kids Zoo Animal & Bird Sounds
  • Konnect
  • Konnekt
  • Learn English Grammar
  • Mobile Applications Development
  • Mobile Apps Training
  • Mobile Game Development
  • Mobile Games Training
  • Mobile Web Development – Mobile Web Developer
  • Mobile Web Training
  • Phonegap Developer
  • Phonegap Training
  • Pre School
  • Pre School
  • Pre School – Journey with Jojo
  • Pre School – Journey With Jojo
  • Privacy Policy
  • Purchase Confirmation
  • Rat on Pipe
  • Rat on Pipe
  • Red Riding Hood
  • Red Riding Hood – 3D Parallax
  • Request to put ad
  • Sample App Page Template
  • Save The Unicorn
  • Save The Unicorn
  • Scratch Training
  • Scratch Training
  • Scriptcase Developer
  • Scriptcase Training
  • SG Landing Page
  • sitemap
  • Smart Tools
  • Smart Tools Template
  • Teach me Kate
  • Teach Me Kate
  • Terms of Use Agreement
  • Thank You for Contacting Us.
  • Wheels On The Bus
  • Wheels On The Bus
  • Wheels on The Bus Go Round
  • WordPress eCommerce
  • WordPress eCommerce Training

©copyright 2013  Home  |  About  |  Sitemap  |  Privacy Policy   |  Disclaimer   |  Terms of Use Agreement   |  Contact