clearSession method

dynamic clearSession(
  1. dynamic key
)

Implementation

dynamic clearSession(key){
  if(req?.session[key] != ''){
    req?.session.remove(key);
  }
}