[PHP, MySQL] - Login, Session, Cookie
#4
@ Pattex deine idee klingt gut ABER Big Grin

ich hab ne Feste IP Wink

wenn du also meine IP kennst kannste auchwieder rumfuschen ^^

EDIT

hab jetzt mit mein php profi geredet löl

er meint

3x..

User Tab
Session Tab
cookie

und die cookie ID soll eine checksumme aus a-z, A-Z, 0-9 sein.

[code=php]
function createCheckSum($length = 64) {
$chars = array(
"0","1","2","3","4","5","6","7","8","9",
"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",
"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"
);
$ret = "";
for($i = 1; $i <= $length, $i++) {
$ret = $ret . $chars[rand(0, count($chars)-1)];
}
return $ret;
}

$checksum = createCheckSum(128);

[/code]
  Zitieren


Nachrichten in diesem Thema
[PHP, MySQL] - Login, Session, Cookie - von KingGO - 02.08.2005, 08:56
[Kein Betreff] - von pattex - 02.08.2005, 10:40
[Kein Betreff] - von chaosdiablo - 02.08.2005, 10:47
[Kein Betreff] - von KingGO - 02.08.2005, 16:24

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste