in reply to CGI::Session not setting cookie

G'day Upland,

Welcome to the monastery.

From your problem description and the code you posted, it looks like you're missing "use Exporter;" before "our @ISA = qw(Exporter);" in "MyPM.pm".

I would expect that an error message like "Undefined subroutine &main::getSession called at login.pl line 13." is being generated and sent to your error log. While you can check through the logs, many find use of CGI::Carp an easier option.

-- Ken

Replies are listed 'Best First'.
Re^2: CGI::Session not setting cookie
by Upland (Initiate) on Mar 11, 2013 at 12:11 UTC

    Yes I do have exporter and CGI::Carp etc .. I was merely trimming the code down in the message to the bare minimum to demonstrate my problem. I said in the text that it was heavily edited/pruned.

    Thanks for the help