2014年5月26日星期一

I have a good job shiro, after successful login, how to get user information in jsp page ?

I added shiro in the project, are equipped with a good

this time from the login page login, login is certified by shiro , shiro that the user's information is stored where were we? How do I get in jsp page ?

Or login authentication , if the login is successful , I have to manually save a current user object in the session ?
------ Solution ---------------------------------------- ----
can do that, the user information stored encrypted in the session
------ Solution --------------------- -----------------------
not used, but nothing more than a few ways to verify the safety , request.getRemoteUser (), request. getUserPrincipal () getName ();.

没有评论:

发表评论