in reply to Re: Please help me... Apache::Session::MySQL
in thread Please help me... Apache::Session::MySQL
The first thing I would recommend is adding a time stamp to the session every time the script is invoked.
Also, I don't see how your session is being untied. Maybe this is buried in FRHWebDB::Session but I suspect it's being left to happen when the Apache::Session object is cleaned up automatically at the end of the script. This may work most of the time but as the Apache::Session docs say, you should explicitly call undef or untie from your script.
I use an END block in my "index" script to handle this:
END { $session->{'timestamp'} = localtime(); undef $session; $dbh->disconnect; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Please help me... Apache::Session::MySQL
by powerhouse (Friar) on Dec 28, 2002 at 19:34 UTC | |
by iguanodon (Priest) on Dec 29, 2002 at 00:17 UTC |