Struppi: It' still not working!

Beitrag lesen

Aber das Umlauteproblem besteht weiter:

my $cookie1;

$cookie1 = new CGI::Cookie(-name=>'eus-session',-value=>$Zeitstempel);

Das kann doch nicht funtkionieren und es kommt auch eine entsprechende Fehlermeldung.

Einmal ist das 'new' zuviel und dann heißt die Funktion: cookie, nicht '_C_ookie' und $Zeitstempel muss natürlich entsprechend formatiert sein und du hast dir durchgelesen, was in der Doku steht, welche Werte du da eintragen kannst?

print CGI::header(-cookie=>$cookie1, -type=> 'text/html');

Wenn du das CGI Modul eingebunden und das Cookie ohne new erzeugt hast, dann geht das und die Reihgenfolge ist egal.

-Kaffeepause- + Zigi ...

Du solltest die Ratschläge befolgen, die du schon mehrfach bekommen hast. Verwende use strict und lass dir die Fehlermeldungen im Browser anzeigen oder besser teste das Skript im Zweifel auch mal in der Konsole.

So könnte das Skript aussehen:

#!/usr/bin/perl -w  
  
use strict;  
use CGI;  
  
my $cookie1 = CGI::cookie(-name=>'eus-session',-value=>'+1h');  
  
print CGI::header(-cookie=>$cookie1, -type=> 'text/html');  

Struppi.

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