<?php if ($username == $this->username AND $this->compare($password, $this->password, $this->salt)) { $_SESSION['user'] = TRUE; $_SESSION['username'] = $this->username; return true; } ?>
Czy stosowanie session_regenerate_id() przed session_destroy() jest najbezpieczniejszym sposobem na wylogowanie?
<?php ?>