<%
    // retrieve security principal and store in session
	java.security.Principal principal = request.getUserPrincipal();
	if (principal != null)
	{
		String userName = principal.getName();
		session.setAttribute ( "username", userName );
	}
	else
	{
    		out.println("No principal");
		return;
	}
%>

******************************************************************************

// retrieve username information
HttpSession session = request.getSession();
user = (String)session.getAttribute ( "username" );
if ( user == null )
    mapstr = "not-loggedin";

******************************************************************************

sueb:gooseegg:123:12,13:sueb
jonx:timestwo:124:13:jonx         

******************************************************************************

admins:12:sueb:admins
users:13:sueb,jonx:users
