Skip to content

Instantly share code, notes, and snippets.

@bradrice
Created August 23, 2011 19:06
Show Gist options
  • Save bradrice/1166161 to your computer and use it in GitHub Desktop.
Save bradrice/1166161 to your computer and use it in GitHub Desktop.
Set session in dotcms
#set($ses = $request.getSession(true))
#set($item = $request.getParameter('courseid'))
#set($_dummy = $ses.setMaxInactiveInterval(1800))
#set($myCookie = $request.getCookies())
#foreach($cookie in $myCookie)
#if($cookie.getName().equals("JSESSIONID"))
#set($ck = $cookie)
#set($_dummy = $ck.setMaxAge(1800))
#end
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment