PDOException: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.: SELECT 1 AS expression FROM {sessions} sessions WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => lpRd9eJC9a5qmdKajyH4gVbfLt7lEkzEAxZfV84PwSY [:db_condition_placeholder_1] => ) in _drupal_session_write() (line 209 of D:\xampp\htdocs\thiduakhenthuong\includes\session.inc).