WebSession createNewSession(String hostAddr){
  String newId;
  do {
    newId=generateSessionId();
  }
 while (sessions.get(newId) != null);
  WebSession session=new WebSession(this);
  session.lastAccess=System.currentTimeMillis();
  session.put("sessionId",newId);
  session.put("ip",hostAddr);
  session.put("language",DEFAULT_LANGUAGE);
  session.put("frame-border","0");
  session.put("frameset-border","4");
  sessions.put(newId,session);
  readTranslations(session,DEFAULT_LANGUAGE);
  return getSession(newId);
}

WebSession createNewSession ( String hostAddr ) { String newId ; do { newId = generateSessionId ( ) ; } while ( sessions . get ( newId ) != null ) ; WebSession session = new WebSession ( this ) ; session . lastAccess = System . currentTimeMillis ( ) ; session . put ( "sessionId" , newId ) ; session . put ( "ip" , hostAddr ) ; session . put ( "language" , DEFAULT_LANGUAGE ) ; session . put ( "frame-border" , "0" ) ; session . put ( "frameset-border" , "4" ) ; sessions . put ( newId , session ) ; readTranslations ( session , DEFAULT_LANGUAGE ) ; return getSession ( newId ) ; }
create a new web session id and object .
