hasSession method

bool hasSession(
  1. String id
)

Check if a session exists

Implementation

bool hasSession(String id) {
  return getSessionById(id) != null;
}