Advertisement
Guest User

A piece of code which needs to be tested!

a guest
Feb 22nd, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1.     public function write($sessionId, $sessionData)
  2.     {
  3.             $sth = $this->databaseConnection->prepare("INSERT INTO `{$this->DBTableName}` (`session_id`,`session_name`,`session_data`) VALUES(:session_id, :session_name, :session_data) ON DUPLICATE KEY UPDATE `session_data`=:session_data;");
  4.             $sth->bindValue(':session_id', $sessionId);
  5.             $sth->bindValue(':session_name', $this->sessionName);
  6.             $sth->bindValue(':session_data', $sessionData);
  7.             return $sth->execute();
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement