The captcha-code was written in the session-variable, but the sessions data isn't writte in the db all the time.
if I remove the "exit;" statement in the file
\components\com_phocaguestbook\views\phocaguestbooki\tmpl\default.php
it works better.
My question, is there a way to save the session-data explicit in the db?
at this file:
\components\com_phocaguestbook\views\phocaguestbooki\view.html.php
Code: Select all
function display($tpl = null)
{
ob_get_clean();
$image_data =& $this->get('Data');
$session =& JFactory::getSession();
$session->set('phocaguestbooksession', $image_data['outcome']);
//Save image code to session to check with post data
// here save the $session in the db ?
$this->assignRef( 'image', $image_data['image'] );
parent::display($tpl);
