blackboard.platform.session
Interface BbSessionManagerService


public interface BbSessionManagerService

BbSessionManagerService This interface provides utility methods to retrieve the BbSession associated with the user making the request.

Since:
Bb 5.5
Version:
$Revision: #1 $ $Date: 2005/06/27 $

Method Summary
 java.util.List getActiveSessionList()
          Returns a List of all active session in this VM.
 BbSession getSession(javax.servlet.http.HttpServletRequest request)
          Returns the BbSession associated with the user making the given request.
 BbSession safeGetSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns the BbSession associated with the user making the given request.
 

Method Detail

getSession

BbSession getSession(javax.servlet.http.HttpServletRequest request)
Returns the BbSession associated with the user making the given request. If the user has not been authenticated, then this method returns an instance that provides methods for an anonymous user. Most code should follow this method call by a check to see if the user is authenticated, using BbSession.isAuthenticated().


safeGetSession

BbSession safeGetSession(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
Returns the BbSession associated with the user making the given request. If a session cookie and its associated database record do not exits, this method sets the cookie header in the HttpServletResponse object and persists a session record in the database.


getActiveSessionList

java.util.List getActiveSessionList()
Returns a List of all active session in this VM.



Copyright © 2003 Blackboard, Inc. All Rights Reserved.