1 2 3 4 | class SetTestCookieMiddleware(object):
def process_request(self, request):
if not request.user.is_authenticated():
request.session.set_test_cookie()
|
More like this
- Cookieless Session Decorator by achimnol 2 years, 9 months ago
- easy set cookie expired time by limodou 5 years, 2 months ago
- login_required for a generic view in URLconf by pgugged 3 years, 10 months ago
- SWFUpload auth decorator by debrice 3 years, 3 months ago
- Disallow multiple logins, i.e. from other computer or browser by ayeowch 1 year, 7 months ago
Comments