tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kutzinski <ku...@gmx.de>
Subject Re: HttpSession usage
Date Mon, 17 Jan 2005 11:31:44 GMT
Pawson, David wrote:

>Which then raises the question, do I (can I) check that a user
>has cookies enabled?
>    
>	HttpSession sess = request.getSession(true);
>	    if( sess.isNew() )
>		logger.info("<p>New Session</p>");
>	    else
>		logger.info("<p>Existing Session</p>");
>
>  
>
Hi,

check the API. You can probably use:
request.|*isRequestedSessionIdFromCookie 
<http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#isRequestedSessionIdFromCookie%28%29>*()


HTH
Christoph
|

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message