|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arsdigita.acs.ClientIdentification
Class for working with the client identification cookies (browser_id, session_id, last_hit, etc.) Normally this object will be initialized by the Request Processor and stored as the "client_identification" attribute for the current request.
RequestProcessor
Constructor Summary | |
ClientIdentification(HttpServletRequest req,
HttpServletResponse resp)
Initializes the client identification information from the ad_browser_id and ad_session_id cookies. |
Method Summary | |
void |
assignBrowserId()
Generates and assigns browser ID cookie. |
void |
assignSessionId()
Generates and assigns the session ID cookie. |
static int |
getCookieReissue()
Returns the period, in seconds, after which we should reissue the session_id cookie and update last_hit in the sessions table. |
static int |
getSessionTimeout()
Returns the timeout, in seconds, for sessions. |
long |
getTime()
# of seconds since Jan 1. |
boolean |
isBrowserIdValid()
|
boolean |
isSessionIdValid()
|
void |
maybeUpdateLastHit()
This updates the session ID cookie w/ a new last update value if it has been longer than the timeout since the last time it was updated. |
String |
toString()
Get debugging string. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ClientIdentification(HttpServletRequest req, HttpServletResponse resp)
Method Detail |
public boolean isBrowserIdValid()
public boolean isSessionIdValid()
public void assignSessionId() throws SQLException, ACSException
public void assignBrowserId() throws SQLException, ACSException
public long getTime()
public void maybeUpdateLastHit() throws SQLException
public static int getSessionTimeout()
public static int getCookieReissue()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |