miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
 
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   
 

After upgrading - can't login

 
 
Page  Page 2 of 2:  « Previous  1  2

Author Paul
Lead Developer
#16 | Posted: 29 Jun 2017 18:27 
I have found the code which should fix this problem for earlier PHP versions.

In index.php, somewhere at the very beginning part of the script, there is going to be added the following code:

$sgcp=session_get_cookie_params();
if(isset($sgcp['httponly'])) $httponlycookie=TRUE; else $httponlycookie=FALSE;

So, $httponlycookie could be used in any further code of miniBB core or add-ons where setcookie function is executed with HTTPOnly flag. For example, in the below code of index.php there could be added:

if($httponlycookie){
setcookie($cookiename.'allForumsPwd', '', (time() - 2592000), $cookiepath, $cookiedomain, $cookiesecure, TRUE);
setcookie($cookiename.'allForumsPwd', $allForums, 0, $cookiepath, $cookiedomain, $cookiesecure, TRUE);
}
else{
setcookie($cookiename.'allForumsPwd', '', (time() - 2592000), $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename.'allForumsPwd', $allForums, 0, $cookiepath, $cookiedomain, $cookiesecure);
}

The similar code should appear in bb_cookie.php and addon_whosonline.php.

This all will be fixed in the upcoming version of miniBB 3.3.

Author Rider
Partaker
#17 | Posted: 30 Jun 2017 20:23 
You're welcome and thanks.
In the meantime I upgraded our server to a higher php version. Now I can login again and have bb_cookie.php default.

Page  Page 2 of 2:  « Previous  1  2 
Specific miniBB Support Forums / Specific /
 After upgrading - can't login
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
 
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP