Session Expired Error when sending email

15 years 2 weeks ago #41508 by cborkowski
Session Expired Error when sending email was created by cborkowski
Hi,

Just recently upgraded to CB 1.02

When I attempt to send an email to a user from their profile page I get a Session Expired Error.

Does Anyone know how to fix this ?

My quess is that it's one of the spoof check in comprofiler.class.php.

thanks
Chris

Post edited by: cborkowski, at: 2007/07/23 23:47

Please Log in to join the conversation.

15 years 2 weeks ago #41509 by cborkowski
Replied by cborkowski on topic Re:Session Expired Error when sending email
Here's the function that is not validating correctly - I found it by changing the alert

For now I've commented it out in order to get the email sent.

starting on line 2081 in comprofiler.class.php


[code:1]function cbAntiSpamCheck() {
//$validate = cbGetAntiSpams();
//$validateValuePost = mosGetParam( $_POST, $validate[0], 0 );
//$validateValueCookie = mosGetParam( $_COOKIE, "cbvs" );
//if ( ( $validateValuePost !== "1" ) || ( $validateValueCookie !== $validate[1] ) ) {
// header( 'HTTP/1.0 403 Forbidden' );
// echo "<script>alert('Session expired. This is the eroor !.'); window.history.go(-1);</script> \n";
// exit;
//}
}[/code:1]

Please Log in to join the conversation.

15 years 2 weeks ago #41514 by beat
Thanks :)
Great to provide problem with temporary fix :)

Upcomming CB 1.1 will solve this issue, happening behind multi-IP proxies.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

14 years 6 months ago #54612 by milos
Good fix! B)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.218 seconds

Facebook Twitter LinkedIn