-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Octavian Rasnita wrote:
> Regarding the same Apache::Session issue....
> 
> I have created a program which has the form below.
> If I comment out "untie %session;, the program doesn't give errors, but if I
> let that line in the program, it gives an error in the browser "The server
> encountered an internal error or misconfiguration and was unable to complete
> your request.", however, I cannot find any error in the error log and I
> don't know what could be the problem.

Strange.

[...]

> my $j = Apache2::Cookie::Jar->new($r);
> my $session_id = $j->cookies('SESSION_ID');
> $session_id =~ s/^SESSION_ID=// if $session_id;
> 
> my $dbh = General::MySQL::dbh(database => 'house');
> 
> my %session = ();
> eval {
> tie(%session, 'Apache::Session::MySQL', $session_id, {Handle => $dbh,
> LockHandle => $dbh});
> };

You do an eval but you don't catch if there's an error by testing [EMAIL 
PROTECTED]

[...]

Try adding "print STDERR" to find at which line your program stops
execution.

Maybe you should also eval{ } the untie'ing of the session?

Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFDRPpQkVPeOFLgZFIRAhSbAKCIUFtMmOysPGIIYRPKwBvEXq5PgACgj9qj
GID9bsCZuX0OLNacZOh5Rio=
=mVRr
-----END PGP SIGNATURE-----

Reply via email to