我在SSO和Websphere Commerce之间使用LTPA配置了Websphere Portal,这很好。
我有一个基于HTML portlet (基于Web Content Viewer)的javascript。
<script>
alert(getCookie('LtpaToken2'));
function getCookie(name) {
var value = "; " + document.cookie;
alert(document.cookie);
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
</script>为什么LTPA令牌不存在?尽管我可以在web控制台(网络视图)中看到它
alerts序列显示:
undefined发布于 2014-11-19 11:43:42
正如Georgy提到的,cookie被设置为HTTPOnly in WAS,可以在Security设置下禁用它。
https://stackoverflow.com/questions/26910552
复制相似问题