On Mon, Jun 1, 2009 at 2:38 PM, Rami <rrr...@gmail.com> wrote:

>
> I'm trying to access Session's (logged in) user id info from a py
> function that does not have 'request' object.  I can't find an obvious
> way to access the session or the cookie data NOT through an
> instantiated request (HttpRequest) obj  [the same way for example you
> can access any Session variable anywhere in your web app in ASP or
> PHP, without needing to pass some request obj on]. Can anyone help?
>
> Thanks.
>
> >
>
There is no way.  Django doesn't contain a magic request object that is
always available, if you need a request or any of it's members you need to
pass it to that function.
Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to