int removeSessionToSessions ( Session session , Collection < Session > sessions ) { if ( sessions != null ) { if ( sessions . remove ( session ) ) { return 1 ; } } return 0 ; }
Remove session in sessions