Ah, I tried to call the session middleware directly, but now I see that
the render_to_response actually calls the tag processing code. So here
is what I did:
<pre>
def save_session(request):
    session_key = request.session.session_key or
Session.objects.get_new_session_key()
    Session.objects.save(session_key, request.session._session,
        datetime.datetime.now() +
datetime.timedelta(seconds=settings.SESSION_COOKIE_AGE))
</pre>

and I call this function if I want to prematurely end the session.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to