perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: Session and redirect oddity
Date Sat, 15 Mar 2003 08:59:08 GMT

> I did some investigating and found that the MySQL behavior for this type
> of problem is to simply report a warning and cut off the text being
> entered if it exceeds the field length.  The session data is becoming
> invalid because in this case the Perl data structure is being
> corrupted.  The section of code related to this problem is in the
> Apache::Session::Store::DBI module.  While RaiseError is turned on,
> MySQL doesn't return a "hard" error that the length of data exceeds the
> field size.

There are two DBI attributes which you can pass to the connect call, called
LongTruncOk and LongReadLen, with which you can set the behaviour in case of
a truncation. At the moment there is no chance to pass these attributes. So
you have to patch Apache::Session::Store::MySQL.


Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:          Voice:   +49 6133 939-122
WWW:      Fax:     +49 6133 939-333
|   Besuchen Sie uns auf der CeBIT vom 12. - 19. März 2003
|   Messe Hannover * Halle 17 * Stand F 36

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message