|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Date() function in javascript?
Hello:
Can someone please tell me what the folling line means? Date(today.getTime() + 3 * 24 * 60 * 60 * 1000) It is in part of a javascript that sets a cookie, how would I change it so the cookie expires in say 12 or 24 hours? Thanks for your help, hope someone can help me! |
|
#2
|
|||
|
|||
|
RE: Date() function in javascript?
If it sets cookies exp. time, than it will expire in "this moment" + 3 * 24 * 60 * 60 * 1000 seconds.
If you want to set it to expire in 12 hours, you should change this into Date{today.getTime() + 3600 * 12) |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Date() function in javascript? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|