Thread CGI/CGI::Simple - Cookies erzeugt falsches Datumsformat bei Expires?
(8 answers)
Opened by GwenDragon at 2021-03-30 18:37 2021-03-31T07:10:10 bianca T:\>perl -MCGI -MCGI::Cookie -E "say CGI::header (-cookie => CGI::Cookie->new(-name=>q/test/, -value=>22, -expires=>qq/+1y/))" Set-Cookie: test=22; path=/; expires=Thu, 31-Mar-2022 10:58:03 GMT Date: Wed, 31 Mar 2021 10:58:03 GMT Content-Type: text/html; charset=ISO-8859-1 Zudem in JS das Ganze so sein muss: document.cookie = "test=22; expires=Thu, 31 Mar 2022 10:58:03 UTC; path=/"; Das irritierte mich eben. |