001
014
015 package com.liferay.portal.servlet;
016
017 import com.liferay.portal.kernel.cache.Lifecycle;
018 import com.liferay.portal.kernel.cache.ThreadLocalCacheManager;
019
020 import javax.servlet.http.HttpSessionEvent;
021 import javax.servlet.http.HttpSessionListener;
022
023
026 public class PortalSessionListener implements HttpSessionListener {
027
028 public void sessionCreated(HttpSessionEvent httpSessionEvent) {
029 new PortalSessionCreator(httpSessionEvent);
030 }
031
032 public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
033 new PortalSessionDestroyer(httpSessionEvent);
034
035 ThreadLocalCacheManager.clearAll(Lifecycle.SESSION);
036 }
037
038 }