Thread HTML Login Seite ohne php vor CSRF Angriffe schützen (32 answers)
Opened by Rambo at 2020-01-10 14:53

Linuxer
 2021-04-08 10:15
#193194 #193194
User since
2006-01-27
3869 Artikel
HausmeisterIn

user image
https://metacpan.org/pod/CGI::Cookie
Creating New Cookies
Code: (dl )
1
2
3
4
5
6
7
8
9
my $c = CGI::Cookie->new(-name    =>  'foo',
-value => 'bar',
-expires => '+3M',
'-max-age' => '+3M',
-domain => '.capricorn.com',
-path => '/cgi-bin/database',
-secure => 1,
-samesite=> "Lax"
);

...

-samesite may be Lax, Strict, or None and is an evolving part of the standards for cookies. Please refer to current documentation regarding it.


Quelle: CPAN:CGI::Cookie
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread HTML Login Seite ohne php vor CSRF Angriffe schützen