public void determineSession(Request request, Response response){
            HttpCookie cookie = request.getCookie("pts_sessionid");
            SessionData session = null;
            if(cookie != null){
                session = sessions.get(cookie.getValue());
            }
            if(cookie == null || session == null){
                // >> Create new Session
                String sessionId = createRandomString();
                while(sessions.get(sessionId) != null){
                    sessionId = createRandomString();
                }
                session = new SessionData();
                sessions.put(sessionId, session);
                cookie = new HttpCookie("pts_sessionid",sessionId);
                response.setCookie(cookie);
            }
            request.setSessionData(session);
        }