开发者

How to remove Main Domain cookie from Sub Domain

开发者 https://www.devze.com 2023-01-19 16:31 出处:网络
is it possible to removeMain Domain cookie fro开发者_开发问答m Sub Domain ?I am using single sign on .On logout i want to remove the maindomain cookieAs far as I know, you can\'t do that.

is it possible to remove Main Domain cookie fro开发者_开发问答m Sub Domain ?I am using single sign on .On logout i want to remove the maindomain cookie


As far as I know, you can't do that.

But couldn't you just point the logout call at the main domain? (presumably you're already doing this for the login call, in order to get the main domain cookie in the first place)


I suspect you would have to navigate to the parent domain, have it remove the cookie, and then maybe redirect back to the child site (perhaps passing the return url encoded on the query-string).


not ideal and not tested / validated, but you might be able to unset the cookie on the client (e.g. using javascript). Not the most elegant solution, but could potentially work.

0

精彩评论

暂无评论...
验证码 换一张
取 消