startSession('anon', 'anon'); //return session_id(); // no anonymous sessions for now return 0; } public function createSession($username, $password) { if ( wp_login($username,$password) ) { $this->startSession($user, $pass); return session_id(); } return 0; } public function destroySession($session_id) { session_id($session_id); session_start(); session_destroy(); } } ?>