Cookie question

Discussion in 'JavaScript' started by Jen-, Apr 3, 2007.

  1. #1
    Hello, can someone please tell me what this means in javascript?


    Quote:
    expires = expires * 1000 * 3600 * 24;

    Thank you very much!
     
    Jen-, Apr 3, 2007 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    There you are assigning the value for 'expires' to: (its previous value) x 1000 x 3600 x 24.
    Presumably the previous value is in 'how many thousand days', and that line of code is converting it to number of seconds.
     
    phper, Apr 4, 2007 IP