Leser: 1
8 Einträge, 1 Seite |
1 2 3
$hash = $q->cookie(-name=>'sessionid',-value=>'$id',-expires=>'+1d'); print $q->header(-cookie=>$hash); print "Location: $url\n\n";
1
2
3
$hash = $q->cookie(-name=>'sessionid',-value=>'$id',-expires=>'+1d');
print $q->header(-cookie=>$hash);
print "<script language=javascript>location.href=\"$url\";</script> ";
1
2
$hash = $q->cookie(-name=>'sessionid',-value=>'$id',-expires=>'+1d');
print $q->header(-cookie=>$hash, -location=>$url);
1
2
3
4
5
6
7
8
9
10
11
12
13
use CGI;
my $cgi = CGI->new();
my $cookie = $cgi->cookie(
-name => "name",
-value => "id",
-path => "/",
-expires => '+1d',
);
print $cgi->redirect(
-url => $forwardUrl,
-cookie => $cookie
);
8 Einträge, 1 Seite |