我自已写的用户类MyPrincipal用了Iprincipal和Identity接口。
比如在当前页面中执行context.user=new Myprincipal(userId);
这样在当前页面中就可以访问context.user.identity.name,但如果跳转到别的页面,
context.user.identity.name就为空,这是为什么?
比如在当前页面中执行context.user=new Myprincipal(userId);
这样在当前页面中就可以访问context.user.identity.name,但如果跳转到别的页面,
context.user.identity.name就为空,这是为什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货