Thread Richtiges löschen von cookies: Opera will nicht (9 answers)
Opened by Free Faq at 2003-10-19 15:57

Strat
 2003-10-19 21:11
#6633 #6633
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
Cookie setzen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
use CGI;
my $cgi = CGI->new();
my $cookie = $cgi->cookie(
-name => $name,
-value => $value,
-path => "/",
-expires => '+1d',
);
print $cgi->header(
-type => 'text/html',
-cookie => $cookie,
);


Cookie loeschen: einfach einen Cookie setzen, der schon abgelaufen ist:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
use CGI;
my $cgi = CGI->new();
my $cookie = $cgi->cookie(
-name => $name,
-value => $value,
-path => "/",
-expires => '-1d',
);
print $cgi->header(
-type => 'text/html',
-cookie => $cookie,
);
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread Richtiges löschen von cookies: Opera will nicht