def inner(request, *args, **kwargs):
    email = request.COOKIES.get('user')
    s_email = request.session.get('user')
    if (email and s_email and (email == s_email)):
        user = LoginUser.objects.filter(email=email).first()
        if user:
            return func(request, *args, **kwargs)
    return HttpResponseRedirect('/Buyer/login/')
def inner(request, *args, **kwargs):
    email = request.COOKIES.get('user')
    s_email = request.session.get('user')
    if (email and s_email and (email == s_email)):
        user = LoginUser.objects.filter(email=email).first()
        if user:
            return func(request, *args, **kwargs)
    return HttpResponseRedirect('/Buyer/login/')