Why are you trying to override it? Its generally there for a reason to ensure that the cookie is scoped as small as possible.
On Wed, Feb 24, 2010 at 5:02 PM, Mihir Patel <[email protected]> wrote: > Hi there, > > We are using CAS version 3.3.5 and there is a property which we can set in > cookieGenerator.xml files for cookiePath. I tried to change that property to > a value other than my context path "/cas" and the following code from > InitialFlowSetupAction overrides it to context path. > > if (!this.pathPopulated) { > final String contextPath = > context.getExternalContext().getContextPath(); > final String cookiePath = StringUtils.hasText(contextPath) ? > contextPath : "/"; > logger.info("Setting path for cookies to: " > + cookiePath); > this.warnCookieGenerator.setCookiePath(cookiePath); > > this.ticketGrantingTicketCookieGenerator.setCookiePath(cookiePath); > this.pathPopulated = true; > } > > I commented out this code which resolved the issue, so just wanted to let > you know and make sure the change is fine. > > Let me know if there is another/better way to set cookiePath. > > Thanks, > Mihir > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
