title: Liferay: How to add cookie from portlet from doEdit(RenderRequest req,RenderResponse res)
body: <p>I am trying to set a cookie  from portlet doEdit method like the following :</p>
  
  <pre><code>Public void doEdit(RenderRequest request, RenderResponse response)
      throws PortletException, IOException 
  {
        Cookie cookie = new Cookie("url","mkyong dot com");
        cookie.setMaxAge(60*60); //1 hour
        res.addCookie(cookie);
  }
  </code></pre>
  
  <p>Here I am getting a error like: The method addCookie(Cookie) is undefined for the type RenderResponse</p>
  
  <p>So can any one help me out</p>