My question is with me.
How do I get for example the events OnWebPagePrerender, took place in the table updates Sise session.
Time I update for example:
if ($modx->event->name != 'OnWebPagePrerender') return ;
if(isset($_COOKIE['PHPSESSID'])){
$ses = $modx->getObject('modSession',array('id'=>$_COOKIE['PHPSESSID']));
if($ses){
$ses->set('access',strtotime("now"));
$ses->save();
}
}
I see that in the table updates, answers session class modsessionhandler.class.php, but I can not figure out how to make it perform?
How to update the column data? I need to upgrade, I knew to what context is this session.
[ed. note: valikras last edited this post 12 years, 5 months ago.]