INNER CODE UNIT · Java

setNativeSession

pac4j/play-pac4j · shared/src/main/java/org/pac4j/play/PlayWebContext.java:257

    public void setNativeSession(final Http.Session session) {
        this.session = session;
    }

    public boolean hasResponseModifications() {
        return !responseCookies.isEmpty() || !responseHeaders.isEmpty() || responseContentType != null || hasSessionChanged();
    }

    protected boolean hasSessionChanged() {
        if (session == null && initialSession == null) {
            return false;
        }
        if (session == null || initialSession == null) {
            return true;
        }
        return !session.equals(initialSession);
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…