Page 4 of 4

Posted: Mon Jan 01, 2007 1:41 am
by batbawls
darksnape wrote: HEEEELP!
THERE IS NO SOLUTION FOR THE PROBLEM YET! PHPBB KILLS ME! DO STH!


Open posting.php and add // before these lines:

// session id check
//if ($sid == '' || $sid != $userdata['session_id'])
//{
// $error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Session_invalid'] : $lang['Session_invalid'];
//}


Open privmsg.php and add // before these lines:

// session id check
//if ($sid == '' || $sid != $userdata['session_id'])
//{
// $error = true;
// $error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['Session_invalid'];
//}

Not the best solution, but for now I think it's all there is.

Posted: Tue Feb 06, 2007 8:22 pm
by camille1197
Thank you - that has worked quite nicely!

Posted: Tue Feb 06, 2007 8:55 pm
by km01grant
I have a few on my board that are using Netscape and getting the error messages in posting and private messages. I knew about the problem with AOL users and when I had them use their IE's instead, the problem stopped. I don't understand why it doesn't work for the Netscape users unless they haven't actually tried IE.

Posted: Sun Feb 11, 2007 5:32 am
by kyle1745
Has there been any further information on this? I currently have a user seeing these errors...

Posted: Wed Feb 21, 2007 5:18 pm
by burlingtonhawkeye
I got the same message when updating from 2.0.21 to 2.0.22. I have a pretty standard install, no mods to speak of, just a few php tweaks here and there. Because of this, I use the patch file to do updates.

I don't know if this will help others, but this is what I did to fix the problem. When I ran the patch, one of the files didn't update properly. It was the usercp_register.php file, which was causing the problem. I went in and manually updated the lines, and the problem went away.

So... maybe patching a 2.0.21 install instead of updating any of the other ways will solve the problem.

It's just a suggestion, maybe I'm completely off base. It's worth a try, in any case.

Posted: Fri Feb 23, 2007 9:44 am
by imoore
I've just discovered I have the Invalid Session error when a new user tries to register - when you click the Submit button, you get the session error message. I've worked around it for now by commenting out the

Code: Select all

	// session id check
	if ($sid == '' || $sid != $userdata['session_id'])
	{
		$error = true;
		$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Session_invalid'];
	}
section in usercp_register.php. This isn't a big deal since the board is on our intranet so it's not accessible without a username & password, but it would be nice to fix it.
I have the Topic Calendar, Attachment and Easymod mods installed.
I've tried editing my previous usercp_register.php by hand with the 2.0.22 changes but it made no difference - I also can't see any problem in usercp_email.php so I don't know what's causing the problem.

Cheers,
Ian

Posted: Sun Feb 25, 2007 5:31 am
by visionquest99
batbawls wrote: Open posting.php and add // before these lines:

// session id check
//if ($sid == '' || $sid != $userdata['session_id'])
//{
// $error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Session_invalid'] : $lang['Session_invalid'];
//}


Open privmsg.php and add // before these lines:

// session id check
//if ($sid == '' || $sid != $userdata['session_id'])
//{
// $error = true;
// $error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['Session_invalid'];
//}

Not the best solution, but for now I think it's all there is.


THANKS this is the only thing that's helped me stop the "invalid session. please resubmit form" error !!!!!

Posted: Mon Feb 26, 2007 4:31 pm
by mommyneedsabreak.com
batbawls wrote:
darksnape wrote:HEEEELP!
THERE IS NO SOLUTION FOR THE PROBLEM YET! PHPBB KILLS ME! DO STH!


Open posting.php and add // before these lines:

// session id check
//if ($sid == '' || $sid != $userdata['session_id'])
//{
// $error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Session_invalid'] : $lang['Session_invalid'];
//}


Open privmsg.php and add // before these lines:

// session id check
//if ($sid == '' || $sid != $userdata['session_id'])
//{
// $error = true;
// $error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['Session_invalid'];
//}

Not the best solution, but for now I think it's all there is.


OMG! Thank you! I've been racking my brain tryin to fix this. THANKS!!!

Posted: Wed Feb 28, 2007 7:36 am
by Kellanved
I'll just re-iterate: that does not fix the issue (which usually is either AOL or a - if it happens to all users - a broken update), but takes away the symptom at the cost of adding a security problem.

Re: Invalid Session

Posted: Sun Apr 01, 2007 5:58 pm
by oisleep
i'm only getting one user (out of roughly 100 a day) who gets this problem, they are using that TOR anonomity thing, could this be related to the problem?

Re: Invalid Session

Posted: Sat May 05, 2007 1:17 pm
by carley
I am also getting this problem for some users posting on the boards since upgrading...
INVALID USER SESSION PLEASE RE SUBMIT


Can someone tell me what code I need to hide on posting.php file to fix the problem?

Also, if users are using AOL & Explorer - did moving to Firefox fix the problem?

Re: Invalid Session

Posted: Fri Dec 07, 2007 10:06 pm
by beggers
I had people reporting the invalid session, resubmit form error since I upgraded to .22. I reluctantly commented out the session check code but this seems like a ready bad "fix". The board worked fine on all browsers before the upgrade.