Thread Perl Problem Code: PHP Code Umschreiben (24 answers)
Opened by Gast at 2006-02-19 09:40

renee
 2006-02-19 10:04
#6921 #6921
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use CGI;

sub logout{
my ($f) = @_;

#Methodenaufrufe
session_start();
session_destroy();

# Cookie-Sache
my @cookies;
for(qw/logged modlogin ivadmin/){
my $cookie = CGI::cookie(-name => $_,
-value => $f,
-expires=>'Wed, 2-Jan-1987 00:00:00 GMT',
-path=>'/',);
push(@cookies,$cookie);
}
print CGI::header(-cookie => [@cookies]);
}

if(defined($f) && $f eq 'logout'){
logout($f);
}


ungetestet!
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Perl Problem Code: PHP Code Umschreiben