Hi,
Have you enabled sessions, through your app config file?
https://developers.google.com/appengine/docs/java/config/appconfig#Enabling_Sessions
Cheers,
Simon
On Tuesday, April 24, 2012 1:04:51 AM UTC+1, kz kz wrote:
>
> When running the following code, a new session is generated every time
> in development mode and when hosted in App Engine. When I try the code
> in Tomcat, it works fine. Why isn't the code working correctly?
>
> response.setContentType("text/html");
> PrintWriter out = response.getWriter();
> HttpSession session = request.getSession(true);
>
> if (session.isNew()) {
> out.println("New session");
> } else {
> out.println("Old Session");
> }
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/LjTWZVp7TTIJ.
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-appengine?hl=en.