Hello All,
After much struggling and confusion I have final got Apache::AuthCookieDBI working on mod_perl.....
Unfortunately I found the notes that come with Apache::AuthCookieDBI confusing and incomplete.
If they had contained just a little hint/foot note covering the two points I mention below then I would have saved hours of frustration.
However now that I have got the code to work.
I take my hat of to “Jacob Davies” for an excellent peace of code.

Hopefully this information may help somebody going though the same headache.

The biggest stumbling block was that IE 6 (grr Microsoft) would not interpret the header that’s passed to it when using the example code.
So you end up seeing the html output as text and not the form you expect to see.
I finally found and explanation berried in a deep and dark forum :)
And encase anybody else is struggling, the answer is to add

 $r->content_type("text/html");

Just above the send_http_header line at the end of the code. Also If you struggle to get Apache::AuthCookieDBI to send the actual cookie make sure if you're on an https (ie mod_ssl) that you add
"PerlSetVar WhatEverSecure 1"
to your httpd.conf file or .htaccess whichever is appropriate.

NOTE: only add this line if your on https. Well I hope the above information helps somebody?
I’d like to point out that the above comments are based on my own experience of configuring AuthCookieDBI and as such are just the opinion of one person(me).

Now to my current problem,
Having logged into the site via the login form.
How do i issue a logout?
I’ve studded the AuthCookie help notes on login out but unfortunately i can’t find the right syntax for AuthCookieDBI.

Any suggestion or comments gratefully received.... good or bad

kind regards
Gareth


In reply to AuthCookieDBI questions and answers by spacey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.