I just had the same problem on a new "play" site we are doing. Check
your cookie path using your browser, we were deployed at /x, but
rewriting so that the application came up at / (e.g. google.com
compared to google.com/x). The cookies were getting reset each time
because it was using the wrong path, so we had to set the cookie path
in the servlet xml files to / rather than the default: /x.
To check cookie path use your browser options and find the cookies
section then search for your site.
Hope that helps.
On Oct 24, 5:47 pm, kavuri <[EMAIL PROTECTED]> wrote:
> Hi ,
> I m creating a session at the time of login....by using the fallowing
> code
>
> HttpServletRequest request = getThreadLocalRequest();
> HttpSession session = request.getSession();
> session.setAttribute("uaerName", impl.getFirstName() +
> impl.getLastName());
> session.setAttribute("loginId", impl.getWinLoginId());
>
> How can i access this session attributes at client side..and at
> serverside at the time logging off i tried to get the same ssession
> which i was created at the time of login wit the fallowing code
>
> HttpSession session = getThreadLocalRequest().getSession();
> System.out.println(session.isNew());
> System.out.println(session.getAttribute("userName") + "logged
> out");.
>
> i got the output as "true" and "null" rather than getting "false" and
> "userName".
>
> could anyone pls tell me the solution wit some sample code...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---