Thread set cookies: ..und CGI (2 answers)
Opened by steinwolf at 2004-01-21 16:57

steinwolf
 2004-01-21 16:57
#79354 #79354
User since
2003-08-04
367 Artikel
BenutzerIn
[default_avatar]
Hi,
wie würdet Ihr das Modul bewerten?
Kann man das "sicherer" machen, Zb. prüfen ob das Cookie gesetzt wurde?

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sub setCookie
{
my $cookiename = shift;
my $value = shift;
my $expires = shift;
my $domain = shift;
my $path = shift;

my $cookie = cookie(-name => $cookiename,
-value => $value,
-expires => $expires,
-domain => $domain,
-path => $path);

print header(-cookie => $cookie);

}
#


mfg steinwolf
perlddc CGI
jaja..ok ;)
"Did you know? You can use your old motor oil to fertilize your lawn." - Blinkster - Professionelles EDV Forum

View full thread set cookies: ..und CGI