I am just learning PHP and having trouble storing session data in the database.
I have a table "sessiondata" as follows
and relevant code is as follows.
array ('dsn' => &$mdb2, 'table' => 'sessiondata'));
$expireTime = time() + 60;
$idleTime = time() + 30;
At this point the output looks like
Array ( [__HTTP_Session2_Info] => 1 [__HTTP_Session2_Expire] => 1241128863 [__HTTP_Session2_Expire_TS] => 1241128803 [__HTTP_Session2_Idle] => 1241128833 [__HTTP_Session2_Idle_TS] => 1241128803 [username] => team1 )
This part of the script wrote some values to the database once. Which got deleted when I had to repopulate the database. Now it is not populating that value again.
Any inputs will be greatly appreciated.
P.S.> one more thing. I have just picked up the examples from PEAR website documentation and trying it.