in reply to Re^2: CGI Session not passing session info between pages
in thread CGI Session not passing session info between pages

Why is flush() not happening then?

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.

poj