94451
Goto Top

Javascript Cookie ablaufdatum zurückgeben

Hallo ihr pros face-smile

ein Cookie mit Javascript erstellen ist nicht schwer.
http://www.w3schools.com/js/tryit.asp?filename=tryjs_cookie_username

aber gibt es denn eine Möglichkeit mein expire date (Ablaufdatum) zurückzugeben?

Vielen Dank

Gruß RoadRunner

Content-Key: 315443

Url: https://administrator.de/contentid/315443

Printed on: April 23, 2024 at 11:04 o'clock

Mitglied: 129813
129813 Sep 16, 2016 updated at 09:52:33 (UTC)
Goto Top
http://stackoverflow.com/questions/1532193/reading-cookie-expiration-da ...
http://stackoverflow.com/questions/3274875/how-to-get-cookie-expiration ...

You could write the expiration date inside the value of the cookie splittet by a delimiter, and when you read it just split the value of the cookie to get data and date.

Regards