Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: AuthCookieDBI questions and answers

by fuzzyping (Chaplain)
on Aug 02, 2004 at 11:15 UTC ( [id://379257]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379257]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found