Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2008, 08:38 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-27-2008, 08:43 PM
wrestlepower wrestlepower is offline
 
Join Date: Apr 2006
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try changing the options in vbulletin options> cookie and http header settings. Set them seperate for each domain or subdomain
Reply With Quote
  #3  
Old 05-27-2008, 08:54 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 05-27-2008, 09:03 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NashChristian View Post
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
You would need to set it to /forums/ and /test/ for both cookie paths.
Reply With Quote
  #5  
Old 05-27-2008, 09:19 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 05-27-2008, 09:23 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-27-2008, 09:51 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
LIVE SITE:

URL: http://NashvilleChristian.com (vBa portal home)
Path: /home/jfenton/public_html/NashvilleChristian/

http://NashvilleChristian.com/forums (vB forums)
/home/jfenton/public_html/NashvilleChristian/forums/
Quote:
TEST SITE:

URL: http://Test.NashvilleChristian.com (Test - vBa portal home)
Path: /home/jfenton/public_html/NashvilleChristian-Test/

http://Test.NashvilleChristian.com/forums (Test - vB forums)
/home/jfenton/public_html/NashvilleChristian-Test/forums/
Am I understanding correctly that I do NOT need to modify the "Cookie Domain" settings on either installation, but that I just need to modify the "Path to Save Cookies" on BOTH of my installations, my LIVE Site, and my TEST site?

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
Reply With Quote
  #8  
Old 05-27-2008, 10:00 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No you should set cookie & path to custom.

test - test.domainname.com path /test/
live - www.domainname.com path /forums/
Reply With Quote
  #9  
Old 05-27-2008, 10:23 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Snakes,

Ok.

So the fact that '/test/' is not actually a physical portion of my server PATH:
Quote:
/home/jfenton/public_html/NashvilleChristian-Test/forums/
Does NOT matter.

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
Reply With Quote
  #10  
Old 05-27-2008, 10:26 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes thats correct.

Is this an actual directory? NashvilleChristian-Test
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:13 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
  • Page Generation 0.05449 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete