vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Cookie Problem (https://vborg.vbsupport.ru/showthread.php?t=202546)

nox1818 01-21-2009 08:59 AM

Cookie Problem
 
Hi,

Can anyone help me out with a problem i'm having. I currently have a vBulletin login on a external php page which seems to work just fine, just when i use it to login to my forum it will show that i didn't login. So i went in the admin panel and changed the cookie path to the second option besideds the default / to mysite.com, now it works just fine and shows the Welcome back user and private messages on a external page but when i go to my forum homepage and try to logout it doesnt work it keeps me logged in, if i change the cookie path back to / then it works fine but then the external login i have dosent, by showing me that i havent logged in. How can i fix it so it works with both my external page and the forum allowing me to login and logout on either the external page or from the forum home page.

Dismounted 01-21-2009 09:30 AM

Change your cookie domain to ".yoursite.com" (without quotes, with preceding dot).

nox1818 01-21-2009 07:34 PM

I have done this, but then it makes the login on my forum not function correclty cause when i login from the forum it works fine, but not logging out, it just keeps me logged in unless i change it back to the default /

Dismounted 01-22-2009 02:30 AM

Cookie Path is different from Cookie Domain. The setting of "/" should be for Cookie Path.

nox1818 01-23-2009 11:33 PM

Why wont my forum log me out when having the cookie domain set as .mysite.com and when using a subdomain for my forum?

I can login and logout using mysite.com/forums

But i cant logout when using forums.mysite.com

How can i fix this?

Dismounted 01-24-2009 02:42 AM

If you look the log out URL, what is it?


All times are GMT. The time now is 09:27 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.00933 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete