[ 
https://issues.apache.org/jira/browse/WW-3605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philip Luppens resolved WW-3605.
--------------------------------

    Resolution: Not A Problem

Please ask user questions on the user mailing list. Thanks.

> Problem with HttpSession in Struts2
> -----------------------------------
>
>                 Key: WW-3605
>                 URL: https://issues.apache.org/jira/browse/WW-3605
>             Project: Struts 2
>          Issue Type: Bug
>         Environment: 2 browser in a computer
>            Reporter: Nguyen Minh Tan
>              Labels: httpsession
>
> I am doing a multi user login application where I use session to store the 
> user object.
> HttpSession session = request.getSession(true);
>   session.setAttribute("user",user);
> In every page I am checking using JSTL whether the user object is present in 
> the session.
> <c:choose>
>    <c:when test="${not empty sessionScope.user}"> 
>     //jsp code
>     </c:when>
>    <c:otherwise> 
>     <logic:redirect forward="welcome"/>
>   </c:otherwise>
> </c:choose>
> My problem is that if the user clicks on a href link in the application the 
> user changes to Previous user in the session. i.e. the it is loading the user 
> from cache. If I refresh the page it will load the correct user.
> How could I fix it?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to