title: How to create and destroy session in Spring REST Webservice called from Mobile client
body: <p>I have Spring REST webserivce 
  Now from a mobile client webservice is getting called.
  First, login method is called for log in succes or failure based on sent value userid and password.</p>
  
  <pre><code>      @RequestMapping(value = "/login", method = RequestMethod.POST,       headers="Accept=application/json")
       public @ResponseBody List&lt;LogInStatus&gt; getLogIn(@RequestBody LogIn person , HttpServletRequest request) {
                // Call service here
               List&lt;LogInStatus&gt; lList = logInService.getUser(person);
  //service method and then in DAO database method is there
  
               return lList;
       }
  </code></pre>
  
  <p>Now, for many other call, I need logged in user based values, so need to keep session and need to get current user.And at log out call, need to destroy session.
  How to do this and achieve,please help with ideas.</p>