when i change the homepage view:
def home(request):
return render_to_response('homepage.html')
to
def home(request):
return render_to_response('homepage.html',context_instance=RequestContext(request))
the user
who login my site will always login even when i close the web Browser(firefox)
why context_instance=RequestContext(request)
can do this ? Does it use cookies ?
how long time it will maintain this state .
thanks
the homepage.html is :
{% if user.is_authenticated %}
<p>Welcome, {{ user.username }}. Thanks for logging in.</p>
{% else %}
<p>Welcome, new user. Please <a href="/account/login_view">login</a></p>
{% endif %}