I have a bunch of web apps that use CGI::Application::Plugin::Authentication and they all function correctly with the latest versions of IE, FireFox, and Chrome on Win7, WinXP, and Ubuntu (10.04LTS and 12.04LTS).

SO... I hate to say it, but there's probably a bug in your code, not in the module. You shouldn't need to, for example, specifically call CGI::Session->new() in your run mode... I know you're only trying to reproduce the problem, but that looks weird. Assuming that you're also using CGI::Application::Plugin::Session, you only need to use $self->session(). And, assuming that your sessions are stored in a database back end, you should also be using CGI::Application::Plugin::DBH. Configuring these three to play nice with each other can be a little tricky.

Here's a link to a simple login tutorial I wrote a long time ago:
RFC: Proposed tutorial - simple login script using CGI::Application

Compare your code to my demo, especially the part that initializes the session module and the authorization module and see if you can spot any differences. That should help get you started.

Good luck!


In reply to Re: CGI::Application::Plugin::Authentication not working on Google Chrome by scorpio17
in thread CGI::Application::Plugin::Authentication not working on Google Chrome by bcrowell2

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.