Re: [Webframework-general] Re: session manager
Status: Beta
Brought to you by:
staniszczak
From: maeve f. az-z. <mae...@ya...> - 2005-11-28 02:48:30
|
hi marcin, i have try it. it work like charm. thanks. anyway, i found on line 126 and 127 of webframerwork.class.php need a little correction: - wrong method reference and missing dot[.] on line 126. - wrong method reference on line 127. - no sessionhandlers folder under context/session this the corrected script for line 126: require_once(WEBFRAMEWORK_CORE_DIR.'Context'.DIRECTORY_SEPARATOR.'Session'.DIRECTORY_SEPARATOR.'SessionHandlers'.DIRECTORY_SEPARATOR.$this->arrConfiguration['settings']['sessionHandler'].'.class.php'); also, please help me to correct my session db handler. public function stop() { return $this->gc(0); } public function gc($intMaxLifeTime) { $intLifeTime = strtotime('-1 minutes'); $strSQL = "delete sessions where sessiontime<$intLifeTime"; return odbtp_query($strSQL)?true:false; } this gc, seems not delete the old session properly. but the same method working good if run outside the framework. any idea, which one i miss? tia, ryan maeve fatimah az-zahra <mae...@ya...> wrote: thanks marcin. i will check it. ryan Marcin Staniszczak <mar...@ga...> wrote: Hi Ryan, Pleas see in web.framework/Context/Session directory on file SessionHandler.interface.php. You can implement this interface in your class and write with in DB handler for session. After define your SessionHandler, please add to settings block in config.xml line like this: Your class must be placed in web.framework/Context/Session/SessionHandlers directory, and must have .clss.php extension (like MySQLSessionHandler.class.php). If you have any other questions please let me know. Best regards, Marcin Staniszczak [kelembutan-Mu, menjawab doa-doa diam kami] --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |