me bad, I just copied the connection string:
[php]$this->_connection = new PDO(‘mysql:host=localhost;dbname=homedb;charset=utf8’, ‘root’, ‘cookie’);[/php]
should be
[php]$db = new PDO(‘mysql:host=localhost;dbname=homedb;charset=utf8’, ‘root’, ‘cookie’);[/php]
Which brings up a good point in a way, when debugging look over the details in the code, the unfortunate part is I can’t test it out.
This might help, write the following code; however, you will have to change it to your code variables :
[php]// Create the database connection as a PDO object:
try {
$db_options = array(
PDO::ATTR_EMULATE_PREPARES => false // important! use actual prepared statements (default: emulate prepared statements)
, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION // throw exceptions on errors (default: stay silent)
, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC // fetch associative arrays (default: mixed arrays)
);
$pdo = new PDO('mysql:host=localhost;dbname=demo_login_system;charset=utf8', 'root', 'your_password', $db_options);
} catch (PDOException $e) { // Report the Error!
echo "Something is not right, check your php.ini settings or code<br>";
} [/php]
Hint, I believe only line that will need changing is line 14. 
Use this as a part of your code to connect to the database and maybe this will help you debug & hopefully get it to execute.