I am using Apache2::AuthCookie for my authentification and authorisation. For both I have to get the user record from the database. For authorisation I have to do an additional lookup for an ordinary item that is requested by the user. I need this record to check e.g. if the requested item and the user belong to the same branch. What I would like to do is: - load the user once save it somewhere (in $r?) and use it for authentification, authorisation and other tasks like presenting him customized menus. - load the requested item, say a product, save it somewhere and use it for authorisation and later in the cycle for the actual display of the record. I would like to not only save the data but the blessed RDBO object itself, so I can use it later to follow relationships and such. And, I don't want to save it in a global variable because I don't want to mess up between different requests (it could be another user and will probably be another item the user wants to see or edit).
Is this possible? I tried $r->dir_config(user_obj => $rdbo_user_obj); from the mod_perl documentation but that didn't work. Perhaps dir_config is only for strings? Is there another place to store a few database objects to speed up things a bit? Thanks, Michael ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object