Of course read the book, auth.login_bare() manages my sessions automatically? Will check it out thanx On 23 May 2013 20:09, "Anthony" <abasta...@gmail.com> wrote:
> Basic authentication won't do anything with the session -- it requires > sending the credentials on every request -- probably not what's desired > here. Instead, the very next section in the book may help: > http://www.web2py.com/book/default/chapter/09#Manual-Authentication. You > can post the login credentials via Ajax and then use auth.login_bare() to > handle the login. > > Anthony > > On Thursday, May 23, 2013 1:39:13 PM UTC-4, Derek wrote: >> >> You did read the book before you asked, yes? >> >> http://www.web2py.com/book/**default/chapter/09#Access-** >> Control-and-Basic-**Authentication<http://www.web2py.com/book/default/chapter/09#Access-Control-and-Basic-Authentication> >> >> On Thursday, May 23, 2013 9:49:21 AM UTC-7, software.ted wrote: >>> >>> Is there a way of using a pure Ajax request to web2py authentication and >>> create a session for a successfully logged in user? >>> >>> -- >>> ..............................**..............................** >>> ........................... >>> Teddy Lubasi Nyambe >>> Opensource Zambia >>> Lusaka, ZAMBIA >>> >>> Cell: +260 97 7760473 >>> website: http://www.opensource.org.zm >>> >>> ~/ >>> Human Knowledge belongs to the world! - AntiTrust >>> >>> Man is a tool-using animal. Without tools he is nothing, with tools he >>> is all - Thomas Carlyle 1795-1881 >>> >>> /~ >>> >> -- > > --- > 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. > > > -- --- 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.