Am Mittwoch, 1. August 2007 10:23 schrieb james_027:
> hi,
>
> I am seeking some enlightenment as why the user (variable use to track
> if the user is logged in or not) seems to be on the request level and
> not on the session which is the practice of most or all of web
> framework? If I am not wrong request.user is done on the middleware
> which will get executed on every request, this could be a unnecessary
> process?

request.user gets created by to OR mapping (from the sql database).
request.session comes from a pickle (serialized to a bytestream).

Both needs to be done for every request. You could use caching,
but object caching (like for request.user) is not possible up to now.

 Thomas

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to