You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by st...@wachovia.com on 2005/04/26 18:12:17 UTC
secure cookies
only way to make cookies secure in Tapestry is to modify source ?
public void addCookie(Cookie cookie)
{
if (LOG.isDebugEnabled())
LOG.debug("Adding cookie " + cookie);
// Is this the only way ?
cookie.setSecure(true);
_response.addCookie(cookie);
if (_cookieMap == null)
readCookieMap();
_cookieMap.put(cookie.getName(), cookie);
}
Re: secure cookies
Posted by Paul Ferraro <pm...@columbia.edu>.
There's no need to modify the Tapestry source:
e.g.
Cookie cookie = new Cookie("myname", "myvalue");
cookie.setSecure(true);
cycle.getRequestContext().addCookie(cookie);
Paul
steven.libonati@wachovia.com wrote:
>only way to make cookies secure in Tapestry is to modify source ?
>
>public void addCookie(Cookie cookie)
> {
> if (LOG.isDebugEnabled())
> LOG.debug("Adding cookie " + cookie);
>
>// Is this the only way ?
> cookie.setSecure(true);
>
> _response.addCookie(cookie);
>
> if (_cookieMap == null)
> readCookieMap();
>
> _cookieMap.put(cookie.getName(), cookie);
> }
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org