[eluser]viisik[/eluser]
Beginners question : if a user is logged in and visits multiple pages , is it correct to assume that all the pages / controllers that the user visits has the username/password/session identified in the beginning of each page/controller
- so each visited logged in page has something like that in the beginning :
function something()
{
$this->load->library('session');
$username = $_POST['username'];
$password = $_POST['password'];
if($this->checkme($username, $password)=='yes')
{
$this->mainpage();
}
else{$this->index();}
}
------------
where is session info - username - password check put in case of pagination - only in the beginning of the main controller ?