title: Google app engine sessions now supported?
body: <p>I thought google app engine did not support sessions (last time I checked was a few months ago). Now I was searching again for it and saw this:</p>
  
  <pre><code>http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
  </code></pre>
  
  <p>says it supports:</p>
  
  <pre><code>javax.servlet.http.HttpSession
  </code></pre>
  
  <p>does this mean we have servlet session support now? If so, does anyone have an example of using this? I wanted to create my own User class and support user login and session management (I know app engine already supports this for google users, but wanted my own users for various requirements)</p>
  
  <p>Thanks!</p>
  
  <p>------------ Update -------------------------------------------</p>
  
  <p>I put this in my GreetingServiceImpl, just to give it a shot:</p>
  
  <pre><code>public void login(String username, String password) {
      HttpSession session = getThreadLocalRequest().getSession(false);
      session.setAttribute("username", username);
  }
  </code></pre>
  
  <p>then I'm trying to see if the session can be discovered in my landing jsp page, after refreshing the page in my browser:</p>
  
  <pre><code>&lt;body&gt;
  &lt;%
    String username = null;
    HttpSession mysession = request.getSession(false);
    if (mysession.getAttribute("username") != null) {
        username = (String)mysession.getAttribute("username");
    }
  %&gt;
  </code></pre>
  
  <p>but it seems the jsp page cannot resolve the fact that the user is logged in. I'd like to be able to figure out that the user is logged in on the landing page when the user refreshes, if possible.</p>
  
  <p>Thanks</p>
  
  <p>------------ Update 2 -------------------------------------------</p>
  
  <p>It works,</p>
  
  <p>Thanks</p>