def is_logged_in_cookie_set(request):
 return ((settings.EDXMKTG_LOGGED_IN_COOKIE_NAME in request.COOKIES) and (settings.EDXMKTG_USER_INFO_COOKIE_NAME in request.COOKIES))

def is_logged_in_cookie_set ( request ) : return ( ( settings . EDXMKTG_LOGGED_IN_COOKIE_NAME in request . COOKIES ) and ( settings . EDXMKTG_USER_INFO_COOKIE_NAME in request . COOKIES ) )
check whether the request has logged in cookies set .