Hi,
i tried to understand the sessionhandling in agavi, but i have still
some lacks.
I started the session in the action:
public function getDefaultView () {
# infos about the database
$aParam = array(
'db_table' => 'session',
'db_id_col' => 'id',
'db_data_col' => 'data',
'session_name' => 'name'
);
# try to save something in the db
$oSession = new PostgreSQLSessionStorage();
$oSession->initialize($this, $aParam);
$oSession->sessionWrite('1341', serialize('hello session'));
}
The Error-message:
DatabaseException
Message: PostgreSQLSessionStorage cannot write session data for id
"1341"
For the Database I use postgre, but i use propel as DAO. I didnt
manage it to get propel run with the 'propelintegration tutorial'.
So i specified the Database in the webapp/config/database.ini:
[Default]
class = "PostgreSQLDatabase"
param.user = "user"
param.password = "password"
param.database = "mydatabase"
param.host = "localhost"
param.port = "64517"
the webapp/config/factory.ini points to the postgres-storage:
storage = "PostgreSQLSessionStorage"
When I think about it, it seems to be a problem with the database
storage, not with the session itself. Is there perhaps a way to get
this done with propel ? - then i would only have one instance that do
the handling with the databse.
Did I miss something in the database configuration?
Cheers Erik
--
J. Erik Heinz
Keyboard-samuraing in process
_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev