'Expire any cookie that initiated profiling request.'

@staticmethod
def clear_profiling_cookies(request, response):

    if ('profile_page' in request.COOKIES):
        path = request.path[:(-1)]
        response.set_cookie('profile_page', max_age=0, path=path)
