if auth.user_id .

On Friday, February 8, 2013 6:52:13 PM UTC+1, Abhishek Gupta wrote:
>
> Hi,
>
> I have a website running on web2py. I want to optimize the login page, and 
> strip all the web2py functional but to see if the user is logged in or not. 
> To explain more, I want to do following:
>
> if user.is_logged_in_custom():
>   return my_html
>
> else:
>   redirect to_some_other_page
>
> The idea is that I don't want to interact with databases, models, and any 
> other modules etc and get the login page as fast as possible. I can't 
> simply cache it, as in that case if user is logged in then also the login 
> page is displayed. 
>
> Thanks in advance
> Abhishek
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to