![]() |
Cookies Pathing Problem - with Sub-Domain Installation
Hello.
I setup a TEST site for my forums, on the same primary domain as my LIVE site, but with a subdomain of 'test'. For example: LIVE SITE: http://mysite.com TEST SITE: http://test.mysite.com The problem that I am experiencing, appears to be that my COOKIES are not configured correctly. I can log-in to my forums (test site). I get the "thank you" message for logging in. However as soon as the page reloads, it "forgets" that I'm logged in and says that I don't have permission to post. On my LIVE site all is working fine. I'm only experiencing this problem with my TEST site. I'm pretty convinced that this must be in my cookie settings, but I don't know what to modify to fix this. Please help. Thanks! Jeff |
try changing the options in vbulletin options> cookie and http header settings. Set them seperate for each domain or subdomain
|
Hello.
Thanks for the feedback. I see where to change the settings, I just don't understand which setting I should change, and what I should change it to. I see the "Path to Save Cookies", with a default of '/' with a suggested setting of '/forums/'. I've tried this, but it didn't help. I don't know if I need to implement some sort of custom setting, and if so then what? I also see the "Cookie Domain", and in the drop down menu it has '.mysite.com' as an option, with the default being 'blank'. I've tried both settings and that doesn't seem to help either. Again I don't know if I need to implement some sort of custom setting, or if the "Path to Save Cookies" is really the problem, or both, or ??? DANG! Now that I tried changing the "Cookie Domain" to '.mysite.com', I can't even log into my AdminCP anymore! It thanks me for logging in, and goes directly back to my log on screen! Ahhhh! PLEASE HELP! Thanks. Jeff |
Quote:
|
King, can you please be a little bit more specific. I'm getting afraid to monkey with these settings, since I just locked myself out of the AdminCP in IE for some reason.
I've cleared all browser cookies, catche, history, but for some reason, I still can't access EITHER AdminCP, not for my TEST site or my LIVE site (in IE), which is really wierd because I have not messed with my LIVE site at all today. Any idea what is going on here, or how I can rectify it? I still have access via FireFox for some reason, but not IE. So are you saying to change the "Path to Save Cookies" to '/forums/' AND change the Cookie Domain to CUSTOM SETTING '/test/'? Am I understanding you correctly? Thanks! Jeff |
No, in each admincp for the live site and the test site, set the path to cookies as king stated, in the live site select forums from the drop menu as its a default option, in the test admincp the path you will ahve to set to custom as /test/ is not a default option.
If you get locked out, upload tools.php to the server in the admincp folder, open it in a browser and set the defautls back and then delete it from the server or rename it. |
Thanks for the clarrification Snakes.
My forum paths, and URL's are different of course. I'm unsure whether this syntax is correct for my application. Let me clearly explain my URL & Pathing relationship, and please tell me if this exact syntax is still correct. I'm using vBa as my 'Portal Home' page. Quote:
Quote:
Now that you have viewed my forum paths and URL relationships, is the syntax still correct which you listed above? '/forums/' on my LIVE site, and '/test/' on my TEST site? Thanks again for all the help! I feel like a block head, but for some reason I am struggling with this. I didn't get freaked out until I started getting locked out of my admin-cp. THANKS! Jeff |
No you should set cookie & path to custom.
test - test.domainname.com path /test/ live - www.domainname.com path /forums/ |
Snakes,
Ok. So the fact that '/test/' is not actually a physical portion of my server PATH: Quote:
I still need to use '/test/' as the "Path to Save Cookies", merely to differentiate it from the other installation? Is this right? Thanks again! Jeff |
Yes thats correct.
Is this an actual directory? NashvilleChristian-Test |
Thanks a lot for all the help!
Much appreciated! :) Jeff --------------- Added [DATE]1211931056[/DATE] at [TIME]1211931056[/TIME] --------------- Quote:
Do I need to path this differently? or will '/test/' suffice? Thanks. Jeff |
Well technically the path for both is /forums/
If you still have issues do it like so: /home/jfenton/public_html/NashvilleChristian/forums/ /home/jfenton/public_html/NashvilleChristian/test/ |
Quote:
Quote:
I'm afraid of screwing up, because it already locked me out once, and has warnings in the admincp: Quote:
Thanks! Jeff |
Yes they both have a actual physical path, but they both end up in a directory named forums, so the path for both would be the same directory.
Move the test site to the directory i posted above and then change the path for the test site to test or do it this way as well: /home/jfenton/public_html/NashvilleChristian-Test/test/ Getting locked out isnt a big deal, you can always get back in by using the tools.php file. |
Dang, so you're saying that I need to physically change the name of my test directory on the server?
This will require me to repath all of my vBa config files, etc... So this cookie path is supposed to get you to the "forums" folder, correct? So are you saying to rename the "forums" folder "test", and then set the cookie path to '/test/' because then that directory will exist? I had hoped that I could differentiate between their parent directories "NashvilleChristian" and "NashvilleChristian-Test". I really don't want to change my file structure or naming convention, unless there simply is no other option. Thanks for the help. Jeff --------------- Added [DATE]1211941837[/DATE] at [TIME]1211941837[/TIME] --------------- I think that I figured out my problem. I don't believe that I needed to modify any of my cookie settings in the AdminCP. All that I appear to have needed to modify was my forums/includes/config.php (on line 92) as follows: PHP Code:
After setting this correctly, I reverted the "Path to Save Cookies" AND the "Cookie Domain", in the AdminCP, to the vB default settings. I don't believe that I ever needed to monkey with that part at all. Everything appears to be working well at the moment. If there is some unforseen reason why this is not configured ideally, someone please let me know. Otherwise, I think that I'm good for now. Thanks for the help everyone! :D Jeff |
All times are GMT. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|