from django.http import HttpResponse
# Create your views here.


def sessfun(request) :
    num_visits = request.session.get('num_visits', 0) + 1
    request.session['num_visits'] = num_visits
    if num_visits > 4 : del(request.session['num_visits'])
    html = HttpResponse('view count='+str(num_visits))
    html.set_cookie('dj4e_cookie', '9c6947bd', max_age=1000)
    return html
