miniBB ® miniBB®
miniBB Support Forums
 | 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 Top

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

 Short link for this topic:

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

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  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB