Skip to content

Commit

Permalink
refs #1113
Browse files Browse the repository at this point in the history
  * 버그 수정
  • Loading branch information
inureyes committed Oct 6, 2008
1 parent 15ac927 commit 1295334
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ function newAnonymousSession() {
return false;
}

function newAnonymousSession() {
global $database;
for ($i = 0; $i < 100; $i++) {
if (($id = getAnonymousSession()) !== false)
return $id;
$id = dechex(rand(0x10000000, 0x7FFFFFFF)) . dechex(rand(0x10000000, 0x7FFFFFFF)) . dechex(rand(0x10000000, 0x7FFFFFFF)) . dechex(rand(0x10000000, 0x7FFFFFFF));
$result = sessionQuery('count',"INSERT INTO {$database['prefix']}Sessions(id, address, created, updated) VALUES('$id', '{$_SERVER['REMOTE_ADDR']}', UNIX_TIMESTAMP(), UNIX_TIMESTAMP())");
if ($result > 0)
return $id;
}
return false;
}

function setSessionAnonymous($currentId) {
$id = getAnonymousSession();
if ($id !== false) {
Expand Down

0 comments on commit 1295334

Please sign in to comment.