miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

cookie domain

Author Anonymous
Guest
#1 | Posted: 6 Apr 2003 12:38 
i'm having a minor cookie issue -- pretaining mostly to the cookie domain. when i don't set the cookie domain, i can't log in. when i set the cookie domain to www.domain.tld (not my domain name, obviously), it works fine so long as the WWW is present, but whenever anyone goes to my site sans WWW, the cookie problem once again resurfaces.

is there a way to set the cookie domain so that it worls with and without the WWW?

Author 4days
Champi0n
#2 | Posted: 6 Apr 2003 17:22 
think all the parameters for cookies are optional including the domain.

but if you're just neglecting to provide a cookie domain in setup_options.php then it's not going to work. you'll have to go into index.php and take out the part that references that parameter (ie: take it out of the setcookie line).

Author Sergei
Team member
#3 | Posted: 7 Apr 2003 06:53 
Try setting $cookiedomain=$_SERVER["HTTP_HOST"];

Author Anonymous
Guest
#4 | Posted: 7 Apr 2003 11:01 
ah, yes, that last one did the trick, thank you Sergei, much appreciated.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / cookie domain 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB