![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
![]() |
#1 |
Inventar
![]() Registriert seit: 08.02.2000
Beiträge: 1.696
|
Probleme mit Cookies... (Perl)
Das folgende Problem hat mich schon zur Weissglut gebracht:
Code:
# HTML-Header print qq~Content-type: text/html\n~; # Cookies print qq~Set-Cookie: huser=$cookies{'huser'}; path=/; expires=+$settings{'cookie_exp_huser'}d;\n~; # 30 days print qq~Set-Cookie: hpwd=$cookies{'hpwd'}; path=/; expires=+$settings{'cookie_exp_hpwd'}m;\n~; # 15 min print qq~\n~; # HTML-Head print qq~<html><head>... and so on... Und er sprechert die Cookies nicht (ich hab im Cookie-File vom IE nachgeschaut - dort ist auch nix drinnen!) Weiß wer, wo der Fehler liegt???
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
![]() |
![]() |
![]() |
#2 |
Inventar
![]() Registriert seit: 24.09.2001
Beiträge: 7.335
|
![]() print qq~Content-type: text/html\n\n~;
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org . |
![]() |
![]() |
![]() |
#3 |
Inventar
![]() Registriert seit: 08.02.2000
Beiträge: 1.696
|
![]() Njet, des funkt net, weil dann speichert er die Cookies erst recht nicht... es darf nur ein \n kommen, und dann die restliche Header-Information und dann erst das "2." \n!!!
Das stimmt sicher!!!
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
![]() |
![]() |
![]() |
#4 |
Inventar
![]() Registriert seit: 24.09.2001
Beiträge: 7.335
|
![]() Türlich, hast recht - Sorry.
Also laut meinen Web-Quellen muss das Datum im Format "Wdy, DD-Mon-YYYY HH:MM:SS GMT" sein. Vielleicht ist das das Problem?
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org . |
![]() |
![]() |
![]() |
#5 |
Inventar
![]() Registriert seit: 08.02.2000
Beiträge: 1.696
|
![]() Danke, hat sich erledigt!
Das +30d bzw. +15m gehört erst umgerechnet (mit einer Funktion in der CGI.pm)... eben in das besagte Format! Jetzt funkt alles einwandfrei!!! Thx! Mike
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|