miniBB Support Forums | 15 years on The Web
miniBB ®


 | Forums | Register | Reply | Search | Statistics | Manual |
Re-cycled miniBB Support Forums / Re-cycled /   

make cookie domainwide

Author Anonymous
#1 | Posted: 7 Sep 2005 18:04 
by default, cookie for this forum is set to it's folder (/minibb/) and I want to use it in other folders of my website... so I have made this:

file: bb_cookie.php

changed functions:
function setMyCookie($userName,$userPass,$userExpTime){
if($userPass!='') $userPass=writeUserPwd($userPass);
setcookie($GLOBALS['cookiename'], $userName.'|'.$userPass.'|'.$userExpTime, $GLOBALS['cookieexptime']);

function deleteMyCookie(){
setcookie($GLOBALS['cookiename'], '', (time()-2592000));
} I have removed directory, domain and secure (don't know what really is this "secure")... but when I log in again, cookie is again set to work just in /minibb/

So, how can I make cookie "domainwide"

Author Avram
#2 | Posted: 7 Sep 2005 18:07 
^^ this was me ;)

Author Team
#3 | Posted: 7 Sep 2005 19:44 | Edited by: Team 
Check this.

Not necessary to edit bb_cookie.php file at all.

Author Avram
#4 | Posted: 8 Sep 2005 02:19 
thanks mon! ;)

Re-cycled miniBB Support Forums / Re-cycled /
 make cookie domainwide
 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
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.