history.back(); "; echo ""; exit; } else { $col = array(); foreach ($rs as $row) { $col = $row; DBGOUT("[rs] ".json_encode($row)); break; } DBGOUT("[0] ".json_encode($col)); $_SESSION['userid'] = $col['userid']; $_SESSION['nologout'] = 0; DBGOUT("session : ".$_SESSION['userid']); echo ""; } ?>