Matti Maekitalo: It' still not working!

Beitrag lesen

Tach auch.

Folgendes funktioniert bei mir anstandslos:

#!/usr/bin/perl -w  
  
use strict;  
use CGI;  
  
my $cookie = CGI::cookie(-name=>'sessionID',  
     -value=>'xyzzy',  
     -expires=>'+1h');  
  
print CGI::header(-cookie=>$cookie, -type=> 'text/plain');  
  
my @c = CGI::cookie();  
foreach my $c (@c) {  
    my $val = CGI::cookie($c);  
    print "$c => $val\n";  
}  

Setzt einen Cookie. Beim zweiten Aufruf zeigt es die gesetzten und mitgeschickten Cookies.
Wichtig: du solltest die Header-Methode nur einmal aufrufen, nicht mehrmals.

Bis die Tage,
Matti

0 55

Variabelwert in Javascript einsetzen via perl!

Gary
  • perl
  1. 0
    Struppi
    1. 0
      Gary
      1. 0
        Struppi
        1. 0
          Gary
          1. 0
            Struppi
            1. 0
              Gary
              1. 0
                Struppi
              2. 0
                RobRobson
                1. 0
                  Gary
                  1. 0
                    Gary
                    1. 0
                      Struppi
                      1. 0

                        Immer noch Cookie -> aber Header!

                        Gary
                        1. 0
                          Gary
                          1. 0
                            Struppi
                            1. 0

                              Fertig!!!

                              Gary
                              1. 0
                                Gary
                                1. 0

                                  It' still not working!

                                  Gary
                                  1. 0
                                    Gary
                                    1. 0
                                      Beat
                                      1. 0
                                        Gary
                                        1. 0
                                          Matti Maekitalo
                                          1. 0
                                            Gary
                                            1. 0

                                              Alles in Ordnung !!!

                                              Gary
                                            2. 0
                                              Struppi
                                              1. 0
                                                Gary
                                                1. 0
                                                  Struppi
                                                  1. 0
                                                    Gary
                                                    1. 0
                                                      Struppi
                                                      1. 0

                                                        Ende...

                                                        Gary
                                                        1. 0
                                                          Struppi
                                                          1. 0
                                                            Gary
                                                            1. 0
                                                              Gary
                                                            2. 0
                                                              Struppi
                                                              1. 0

                                                                Unbekannte Länge verarbeiten?

                                                                Gary
                                                                1. 0
                                                                  Struppi
                                                                  1. 0
                                                                    Gary
                                                                    1. 0

                                                                      Zählerproblem

                                                                      Gary
                                                                      1. 0

                                                                        Zählerproblem - präzisiert!

                                                                        Gary
                                                                        1. 0
                                                                          Beat
                                                                          1. 0
                                                                            Beat
                                                                          2. 0
                                                                            Gary
                                                                    2. 0
                                                                      Struppi
                                                                      1. 0
                                                                        Jean-Max
                                                                        1. 0
                                                                          Beat
                                                                          1. 0
                                                                            Gary
                                                                2. 0
                                                                  Beat
                                                                  1. 0
                                                                    Gary
                                                                    1. 0
                                                                      Beat
                                    2. 0
                                      Matti Maekitalo
                    2. 0

                      Erledigt!

                      Gary
  2. 1
    ChrisB
    1. 0
      Gary
      1. 0
        Der Martin
      2. 0
        Struppi