Leser: 1
6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
use CGI::Cookie;
my $c = new CGI::Cookie(-name=>"$test1",
-value=>"$test2",
-path=>"/",
-expires=>'+2y');
print "Location: $url\n";
print "Set-Cookie: $c\n\n";
1
2
3
4
5
6
7
8
9
10
11
my $cookie = $cgi->cookie(
-name => $cookieName,
-value => $value
-path => "/",
-expires => '+1d',
);
print $cgi->redirect(
-url => $forwardUrl,
-cookie => $cookie
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
header("P3P: CP=\"ALL DSP COR NID CURa OUR STP PUR\"");
$nocookies = false;
$reloaded = $_GET["ckset"];
$url = $_SERVER[PHP_SELF];
$querystring = $_SERVER[QUERY_STRING];
$querystring = str_replace("ckset=ok", "", $querystring);
setcookie("LEAD_standardlead", "putty", time()+(1000000));
if ($reloaded == "" and !isset($check_cookie)) {
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=http://www.naturalanimalcare.com" .
$_SERVER[PHP_SELF] . "?ckset=ok" . $querystring . "\">";
exit;
}
else {
if (!isset($check_cookie)) $nocookies = true;
}
?>
1
2
3
4
5
6
7
8
9
10
11
12
my $cookie = $cgi->cookie(
-name => $cookieName,
-value => $value
-path => "/",
-expires => '+1d',
);
print $cgi->header(
-p3p => 'CP="ALL DSP COR NID CURa OUR STP PUR"',
-url => $forwardUrl,
-cookie => $cookie
);
6 Einträge, 1 Seite |