src/Auth/AuthManager.php
public function login( UserData $user ) {
		// clear session
		foreach ( $_SESSION as $key => $value ) {
			unset( $_SESSION[$key] );
		}

		// generate new session id
		session_regenerate_id( true );

		// store user info in session
		$this->setUser( $user );
	}
public function login( UserData $user ) {
		// clear session
		foreach ( $_SESSION as $key => $value ) {
			unset( $_SESSION[$key] );
		}

		// generate new session id
		session_regenerate_id( true );

		// store user info in session
		$this->setUser( $user );
	}
public function login ( UserData $ user ) { // clear session foreach ( $ _SESSION as $ key => $ value ) { unset ( $ _SESSION [ $ key ] ) ; } // generate new session id session_regenerate_id ( true ) ; // store user info in session $ this -> setUser ( $ user ) ; }
Add authentication.

@param UserData $user
Add authentication .