Jump to content

Forum keeps logging members out.


AriCode

Recommended Posts

Posted

Hiya,

I have had members messaging me constantly over the past week that they cannot stay signed in to the board. I am running 3.4.7. Most people get kicked out immediately with Chrome, lesser so with Firefox. I don't believe it is a cookie problem.

my actual site is a blog, with my forums being a subdomain (for example my site is "mysite.com/forum/"

".mysite.com/" is my cookie domain

"-forum-" is my cookie path

Do I have this set up right? I also have .htaccess enabled. I really want to figure out this problem...

Posted

If you are not using an actual sub-domain, e.g. forum.mysite.com than your cookie path can remain empty as it should be on your whole domain. Are you running IPS software for the blog or another provider?

Can check your cookie domain by going to the ACP and System Settings  >  System  >  Server Environment > Cookie domain. Again unless you are using a sub-domain or separate software for your blog there is no need to fill this in as your domain is fine.

Posted

I am using a subdomain for my forums.

For example, my blog is "site.com" and my forum is "site.com/forum/". My blog is wordpress.

I am just a little lost as to what is needed for my cookie domain, cookie path, and cookie blog domain.

Right now I have

Cookie domain: .mysite.com

Cookie path: -forum-

Blog Cookie domain: .mysite.com

Do I have this wrong?

Posted

site.com/forum is not a sub-domain. site.com/forum is a directory, forum.domain.com would be a sub-domain ;) so in that case you would want to leave cookie domain empty to use default.

Posted

I would avoid using the cookie path-setting. The last time I looked into it, I believe I found it to be a bit unreliable and if you have a cookie prefix already, then it doesn't provide that much value.

I've found setting the cookie domain to be ".mysite.com" (the dot in the front is very important) to be more reliable than leaving it blank.

Posted

So should I then leave the cookie domain to ".mysite.com/forum" and leave the cookie path clear? and should i also leave the blog cookie domain clear?

Posted

No. Cookie domain is only supposed to a domain. /forum is not part of your domain. 

If you want to define the cookie path, then it should be "/forum"

Posted

Hiya,

I have had members messaging me constantly over the past week that they cannot stay signed in to the board. I am running 3.4.7. Most people get kicked out immediately with Chrome, lesser so with Firefox. I don't believe it is a cookie problem.

my actual site is a blog, with my forums being a subdomain (for example my site is "mysite.com/forum/"

Do I have this set up right? I also have .htaccess enabled. I really want to figure out this problem...

​What has you screwed up is the ending "/" in your cookie domain.... It should be written as ".mysite.com" without the quotation marks. Your cookie path should be written as "-forum-"

again without the quotation marks.

If you are running this on a server with another install you should use this. If it is a standalone forum site then its not really needed and you can leave blank... The only real reason is to distinguish forum sites from each other. Example: a live 3.4.7 board and a 4.0 RC test board on the same domain.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...