This puzzled me for some time. What I found was that if you replaced the init subroutine (with inline code) the OP code works. I think the reason is the order in which the session and dbh object are destroyed. With $session in the sub, the dbh is destroyed first preventing the data from being synchronized.
pojIn reply to Re^3: CGI Session not passing session info between pages
by poj
in thread CGI Session not passing session info between pages
by RedJeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |