Thanks to all who bothered to answer my first posting.
Unfortunately, my problem persists. Here are a few more details.
There is a static front page index.html where the user is asked to select one of two possible languages. There are two links on this first page: /cgi-bin/index.cgi/en,
/cgi-bin/index.cgi/fr.
Below is the code for index.cgi. The warn message there shows up twice in my error log, the first time with language set to the correct value, and the second time with
language=undefined...
I'm using CGI::FastTemplate to generate the HTML (it's a use-clause in mysession.pm).
Note the init_session($language) call. It checks for a SESSION_ID cookie, and then ties a sesion hash to an Apache::Session::File.
use mysession;
my $language;
warn ("\n In index.cgi language=$ENV{'PATH_INFO'} \n");
if (defined ($ENV{'PATH_INFO'}) ) {
$language = uc(substr($ENV{'PATH_INFO'}, 1));
}
else {
$language='en';
}
init_session($language);
assign(LANGUAGE=>lc($language));
define(main=>'index.html');
parse(MAIN=>'main');
nice_exit();
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.