94451

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
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 315443

Url: https://administrator.de/forum/javascript-cookie-ablaufdatum-zurueckgeben-315443.html

Ausgedruckt am: 03.06.2025 um 21:06 Uhr

129813
129813 16.09.2016 aktualisiert um 11:52:33 Uhr
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