miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
 
 | 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
 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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP