MyBB Community Forums

Full Version: Cookies issue?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have changed the hosting and now I can't login?

The files are located in publich_html/mysite/ hosted on Godaddy.

right now Cookie Path is set to /
I think your cookie settings should be:

$settings['cookiedomain'] = ".publich_html";
$settings['cookiepath'] = "/mysite/";
$settings['cookieprefix'] = "";

Note the point (.) before publich_html
It's messed up on home page only? @Ad Bakker I used your solution and the same thing please guys?

Do I have to edit settings.php cause from admin panel it returns to old settings?

Cookie Domain: .letsforum.com
Cookie Path: /
(2015-07-24, 04:06 PM)marcus123 Wrote: [ -> ]Do I have to edit settings.php cause from admin panel it returns to old settings?

Both, inc/setting.php first then AdminCP immediately after logging in.
My settings.php is 644 is this OK?
(2015-07-24, 04:21 PM)marcus123 Wrote: [ -> ]My settings.php is 644 is this OK?

yes.
PLease hear me!

On goddady hosting you have to place your website files in the public_html folder. So I have a folder there called: letsforum.com which contains all my forum files?

It's not working on home page on other pages is OK!

I access my site like this: letsforum.com
(2015-07-24, 04:21 PM)marcus123 Wrote: [ -> ]My settings.php is 644 is this OK?

No, it should be writable - 777.
My hosting has mod_security on and they will not disable it what should I do to make cookies work?

Cookies only don't work on the home page on the rest of the site they are OK!

It seems that this code is causing the issues with cookies?


#


## EXPIRES CACHING ##

<IfModule mod_expires.c>


ExpiresActive On


# Default directive
ExpiresDefault "access plus 1 month"

# Feed
  
ExpiresByType application/rss+xml       "access plus 1 hour"
  
ExpiresByType application/atom+xml      "access plus 1 hour"


# Favicon (cannot be renamed)
  
ExpiresByType image/x-icon              "access plus 1 year"


# Media: images
  
ExpiresByType image/gif                 "access plus 1 month"
  
ExpiresByType image/png                 "access plus 1 month"
  
ExpiresByType image/jpeg                "access plus 1 month"
  
ExpiresByType image/jpg                 "access plus 1 month"


# CSS
  
ExpiresByType text/css                  "access plus 1 month"
 

#JavaScript 
ExpiresByType application/javascript    "access plus 1 year"
  
ExpiresByType text/javascript           "access plus 1 year"
  
ExpiresByType text/x-javascript         "access plus 1 year"


</IfModule>

## EXPIRES CACHING ##


Any ideas why?