getId(); if( !$user->isAuthenticated() ) { $out[] = 'Login'; $data = array( 'nickname' => 'gerd', 'password' => 'gerd123' ); $user->login( $data ); $out[] = 'user id AFTER login ' . $user->getId(); } $user->logout(); $out[] = 'user id AFTER logout ' . $user->getId(); $req = WBClass::create( 'WBRequest' ); /* @var $req WBRequest */ $res = WBClass::create( 'WBResponse' ); /* @var $res WBRequest */ $res->add( implode( "
\n", $out ) ); $res->send( $req ); ?>