Welcome Guest, Not a member yet? Register   Sign In
Logged-in pages - sessions and password check
#1

[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 ?


Messages In This Thread
Logged-in pages - sessions and password check - by El Forum - 02-06-2010, 03:23 PM
Logged-in pages - sessions and password check - by El Forum - 02-06-2010, 10:08 PM
Logged-in pages - sessions and password check - by El Forum - 02-07-2010, 03:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB