phpbuddy.eu
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 19.02.2003, 15:58   #1
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg

Cookies werden nicht gesetzt


OK, vorhin hatte ich ein Problem mit der Ablaufzeit des Cookies!
Jetzt kann ich auf einmal keine mehr erzeugen!!!!

Ich weiß aber nicht warum!

PHP-Code:
$ip "server";
$usr "user";
$pwd "passw";

$connection mysql_connect($ip$usr$pwd) or die ("Verbindung zur Datenbank kann nicht hergestellt werden");
mysql_select_db ("db_name"$connection);

$pw_md5 md5($passw); # Gesendetes Passwort vom Formular mit md5(), zum vergleichen, umwandeln

$sql "SELECT bla1, bla2, bla3 FROM User INNER JOIN Apps ON User.Name = Apps.User WHERE Name = '$user' and Passw = '$pw_md5'";
$ergebnis mysql_query ($sql$connection);
echo 
mysql_error($connection);


if (
mysql_num_rows($ergebnis) > 0)
    {
        
SetCookie("userlog"$row[1], time()+30);
        
SetCookie("intranetlog"$row[4], time()+30);
        
SetCookie("damagelog"$row[5], time()+30);

    }
    else
    {
        echo 
"<center><b>Login fehlgeschlagen</b></center>";
        exit();

    }



echo 
"OK<br>\n";
if (isset(
$userlog))
{
    echo 
"Cookie ist vorhanden";
}
else
{
    echo 
"Kann Cookie nicht finden";
}

mysql_close($connection); 
Was is hier Falsch????

lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten


Alt 19.02.2003, 16:59   #2
TP-Supporter
 
Benutzerbild von Filou
 
Registriert seit: Aug 2002
Ort: Erde
Filou macht alles soweit korrekt
register globals auf on oder off am server ?
wegen der übernahme von $pw_md5 vom formular.

gib dir mal das ergebnis aus, ob deine abfrage stimmt.

ciao filou
__________________
ich liebe dich, Hans-Jörg. gebt schwulen gleiche rechte.
erst wenn wir alles verloren haben, haben wir die freiheit alles zu tun.(tyler durden)
Filou ist offline   Mit Zitat antworten
Alt 19.02.2003, 17:25   #3
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
register globals --> keine Ahnung ob on oder off, das is nicht mein Server sollte aber schon sein weil's ja vorhin noch gefunkt hat!!

Das Ergebnis passt kein Problem! Wie gesagt, vorhin hat alles noch super funktioniert.

Im Code sehe ich keinen Fehler!
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 19.02.2003, 17:50   #4
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Talking

Ereldigt


OK! Das Problem hat sich erledigt!

Ich hatte vergessen die Variablen die die values für die Cookies beinhalten anzupassen!

lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Traum-Dynamik
Cookies werden nicht gesetzt Cookies werden nicht gesetzt
« Login Script mit Sessions | mySQL -->csv download auf Rechner »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 00:05 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67