from django.conf import settings


class SSODisplayLoggedInCookieMiddleware:

    def process_response(self, request, response):
        cookie_value = 'false'
        user = getattr(request, 'user', None)
        if user and user.is_authenticated():
            cookie_value = 'true'
        response.set_cookie('sso_display_logged_in', value=cookie_value,
            domain=settings.SESSION_COOKIE_DOMAIN, max_age=settings.
            SESSION_COOKIE_AGE, secure=False, httponly=False)
        return response

b7e4988b18cb8c7ee77f1387fbf9c0a196bb9bb1
<mask token>

<mask token>


class SSODisplayLoggedInCookieMiddleware:
    <mask token>

<mask token>


class SSODisplayLoggedInCookieMiddleware:

    def process_response(self, request, response):
        cookie_value = 'false'
        user = getattr(request, 'user', None)
        if user and user.is_authenticated():
            cookie_value = 'true'
        response.set_cookie('sso_display_logged_in', value=cookie_value,
            domain=settings.SESSION_COOKIE_DOMAIN, max_age=settings.
            SESSION_COOKIE_AGE, secure=False, httponly=False)
        return response

from django.conf import settings


class SSODisplayLoggedInCookieMiddleware:

    def process_response(self, request, response):
        cookie_value = 'false'
        user = getattr(request, 'user', None)
        if user and user.is_authenticated():
            cookie_value = 'true'
        response.set_cookie('sso_display_logged_in', value=cookie_value,
            domain=settings.SESSION_COOKIE_DOMAIN, max_age=settings.
            SESSION_COOKIE_AGE, secure=False, httponly=False)
        return response
