http://www.perlmonks.org?node_id=379181


in reply to Apache::Session::MySql using a_session

Hi,

Correct, I would not want to change the table directly (even though that would be easier at this point). I try setting values like the example shows (ie. visa_number). But it never makes it back to the database table. Here is some example code from my script:

... Other code ....

my %session;
tie %session, 'Apache::Session::MySQL', $cookie, {
DataSource => 'dbi:mysql:sessions', #these arguments are
UserName => '*******', #required when using
Password => '*******', #MySQL.pm
LockDataSource => 'dbi:mysql:sessions',
LockUserName => '*******',
LockPassword => '*******'
};

$session{a_session}=localtime();
$session{somenumber}='123456';

... Other code ....

untie %session;
undef %session;

Again, nothing seems to make it back into the table. =(

Any Ideas?
--DawgTool