git-svn-id: https://svn.coded.pt/svn/SIPRP@1672 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 15 years ago
parent 94755fab8d
commit 6a2ad6479b

@ -111,7 +111,4 @@ public class JSFUtils {
return (String) parameters.get(parameter);
}
}

@ -118,18 +118,21 @@ public class Utils {
ServletContext paContext = session.getServletContext();
ServletContext aatContext = paContext.getContext( "/AnaliseAcidentesTrabalho" );
Map< String, Object > mapData = ( Map< String, Object > ) aatContext.getAttribute( aatSessionID );
if ( mapData != null )
if ( aatContext != null && aatSessionID != null )
{
HttpSession aatSession = ( HttpSession ) mapData.get( "session" );
try
Map< String, Object > mapData = ( Map< String, Object > ) aatContext.getAttribute( aatSessionID );
if ( mapData != null )
{
aatSession.invalidate();
}
catch ( IllegalStateException e )
{
// ErrorLogger.logException( e );
System.out.println( "Session already invalidated." );
HttpSession aatSession = ( HttpSession ) mapData.get( "session" );
try
{
aatSession.invalidate();
}
catch ( IllegalStateException e )
{
// ErrorLogger.logException( e );
System.out.println( "Session already invalidated." );
}
}
}
}

Loading…
Cancel
Save