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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Apache::Session::MySql using a_session
by jeyroz (Monk) on Jun 15, 2005 at 02:54 UTC |
In Section
Seekers of Perl Wisdom