1 6 7 package org.contineo.core; 8 9 import javax.servlet.http.HttpSession ; 10 14 public class SessionManagement { 15 16 public static boolean isValid(HttpSession session) { 17 boolean result = true; 18 String username = (String )session.getAttribute("authuser"); 19 if (username == null || username.equals("")) 20 result = false; 21 if (session.isNew()) 22 result = false; 23 return result; 24 } 25 } 26 | Popular Tags |