in reply to AuthCookieDBI questions and answers

How do i issue a logout?

I don't use AuthCookieDBI, but generally whenever you want to logout a user that's logged in with cookies, you do two things: 1) reset their cookie to a new value, and 2) redirect them to an "entry" page.

You should be able to figure out the rest. :)

-fp
  • Comment on Re: AuthCookieDBI questions and answers

Replies are listed 'Best First'.
Re^2: AuthCookieDBI questions and answers
by spacey (Scribe) on Aug 02, 2004 at 16:03 UTC
    Thank you “fp” for your answer.
    Unfortunately I should have been more succinct with my description of the problem.
    I except that to log a user out you would follow one of the two suggested path.
    Most likely removing the session cookie.

    I guess my question should have been what syntax would I issue to remove the cookie or issue a bad session key against the username in AuthCookieDBI??
    AuthCookie gives and example of:-
     "$r->auth_type->logout($r);"

    If my understanding is correct this poisons the session. So the next request to authorize will redirect to the login page.
    So is there such a command for the modified AuthCookieDBI??

    Again thanks to one and all
    Gareth