miniBB ® 


Support Forums
 | Start | Register | Search | Statistics | File Bank | 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 
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

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.

Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.


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