Page 1 of 1

Error 403 - Request Forbidden

Posted: 22 Oct 2008, 18:19
by csilla
Hi,

I'm using Phoca Guestbook 1.3.0 on Joomla 1.5.7 and I've met the following issue: when I try to submit a guestbook entry after not doing anything on the page for a while, I get a 403 error with the message 'Request Forbidden'. Apparently it is caused by an expired session/token, I even found the code raising the error in the file ...\components\com_phocaguestbook\controllers\phocaguestbook.php round line 39:

Code: Select all

		//check the token before we do anything else
		$token	= JUtility::getToken();
		if (!JRequest::getInt( $token, 0, 'post' ))
		{
			JError::raiseError(403, 'Request Forbidden');
		}
I guess this is how it's meant to be, still I was wondering if it's really necessary or maybe there is a better way to handle the issue, since I find quite inappropriate such a severe error for a simple session timeout. Any help/advice would be welcome.

Regards,
Csilla

Re: Error 403 - Request Forbidden

Posted: 23 Oct 2008, 14:51
by Jan
Hi, this is a standard jommla error warning, but yes, I can change it in next version (e.g. to redirect into main site with some error message in the system message area)

Jan

Re: Error 403 - Request Forbidden

Posted: 25 Oct 2008, 12:10
by csilla
That would be nice. Thanks for your answer and for this fine component, keep up the good work. :|

Regards,
Csilla

Re: Error 403 - Request Forbidden

Posted: 25 Oct 2008, 15:32
by Jan
:wink: