|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
You access them by the document.cookie Code:
document.cookie = 'ppkcookie1=testcookie; expires=Thu, 2 Aug 2001 20:47:11 UTC; path=/' 2. then a semicolon and a space 3. then the expiry date in the correct format ('expires=Thu, 2 Aug 2001 20:47:11 UTC') 4. again a semicolon and a space 5. then the path (path=/) From: http://www.quirksmode.org/js/cookies.html |
|
|||||
|
Yes, here is some code: Code:
var expireDate = new Date() expireDate.setHours(expireDate.getHours()-10) Code:
document.cookie = 'ppkcookie1=testcookie; path=/; expires=' + expireDate.toGMTString();
__________________
Void |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a Clock | AfTriX | VB Tutorials | 1 | 05-08-2009 10:33 AM |
| Creating an analog clock with ActionScript | AfTriX | Tutorials | 2 | 01-07-2007 02:19 AM |
| Cookies | dirkfirst | HTML Programming | 10 | 01-06-2007 04:11 AM |
| Creating a backup script | NeedHelp | General Programming | 3 | 09-07-2006 05:14 AM |
| Creating Tables | leon | Database & Database Programming | 2 | 06-12-2006 09:02 AM |
Algorithms and Data Structures
Programming Language Popularity
Code Collaboration
Podnet IRC Network
AmpHosted
Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%