This returns me to /default/index with the flash of "Logged out". My response.flash, specified below the auth.logout() is never seen.
I also tried it with the response.flash= statement ABOVE the auth.logout(). The user gets logged out, but I have no control over what he sees next. If you have further suggestions, I'm very interested. Ed On Mar 1, 2:26 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > this should work, no? > > def index(): > auth.logout() > response.flash="bye bye user" > > On Mar 1, 1:12 pm, Ed Greenberg <greenberg...@gmail.com> wrote: > > > At the end of my controller function, I'd like to log the user out and > > send him back to the login screen, hopefully with a response.flash on > > the screen. > > > I've tried several things, none of which work. > > > I tried sending him to URL(c='default',f='user',args=('logout')) which > > got close. One was summarily dropped to the home page, with no > > feedback as to how one got there. > > > Any suggestions?