Class AuthenticationMechanismSession

Description

Implements interfaces:

Session based authentication

This authentication frontend tries to get the credentials from session data, what means you will need to set this data in another place.

You might use this code to perform login:

  1. Session::regenerateID();
  2. Session::setVar('auth_loggedin', true);
  3. Session::setVar('auth_user', $uname);
  4. Session::setVar('auth_pass', $pass);

Located in /phpsatk-lib/global/org.eenterphace.sat.auth.session/authentication.mechanism.session.php (line 44)


	
			
Method Summary
void forceLogOut ()
string getUsername ()
void sendPrompt ()
Methods
forceLogOut (line 83)

Tries to logout a user

This might be not possible for some mechanisms.

  • access: public
void forceLogOut ()
getUsername (line 92)

Gets the username from the session

  • access: public
string getUsername ()
sendPrompt (line 102)

If we have to prompt - we deny access

A login form is included when denying access

  • access: public
void sendPrompt ()
verifyCredentials (line 53)

Verify the given crendentials

Return false if no credentials are provided.

  • access: public
bool verifyCredentials ()

Documentation generated on Mon, 21 May 2007 10:34:42 +0200 by phpDocumentor 1.3.0RC5