2009/4/5 Joshua Partogi <joshua.j...@gmail.com>: > > Dear all, > > I'd like to get session object because I would like to figure out > whether a user is still logged in or not. I tried searching the > documents but could not find a way to do it. > Using {% if user.is_authenticated %}, the user object is only > available in one request but will be dissapeared in the next request.
In your render_to_response don't forget to add context_instance=RequestContext(request) Hope it helps! -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---