I think I accomplished this with cookies.writeDomainCookieValue (I have to
test it on a productional machine which I have no access to right now, but
it works on my local machine with multiple subdomains).

But now I can't delete this cookie. After the user logs in I want to
redirect him/her to the url written in the cookie and then delete the
cookie.

No matter what I do it doesn't work:

cookies.removeCookieValue("shiroSavedRequest"); - not working, cookie stays
the same
cookies.writeDomainCookieValue("shiroSavedRequest", "_", <my_domain>, 0); -
also has no effect

Shouldn't this delete the cookie?

Regards,
Lidija


On Tue, Jan 28, 2014 at 3:18 PM, Lidija Dolinar <lidija....@gmail.com>wrote:

> Hi,
>
> our web application is running on different sub-domains and we need
> shiroSavedRequest cookie to be saved on domain level and not on subdomain
> level.
>
> This is supposed to be accomplished with the following setting in
> shiro.ini:
> [main]
> securityManager.sessionManager.sessionIdCookie.domain=<domainName>
>
> But as I understand, I cannot configure shiro in Tapestry through
> shiro.ini file.
>
> How else can I configure this?
>
> Any help would be highly appreciated.
>
> Regards,
> Lidija
>
>

Reply via email to