vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: vForums :: Report a Bug :: Resolved Bugs :: Forum Logout Broken - View Topic
Topic Rating: *****
Printable View
This topic was locked 20th Dec 09 at 6:49am by ashkir
dog199200
Guest
Forum Logout Broken (6th Sep 09 at 4:55am UTC)
Website URL: http://www.divineshadowsonline.com
Forum URL: http://www.forum.divineshadowsonline.com (http://www.divineshadowsonline.vforums.co.uk)
Browser: Firefox


Ross;

Just wanted to let you know that when linking a website to the forum via the api, the logout in the latest api script ends up disabling the forums logout. Or maybe its not the API, it might be the sub-domain thing. I'm not sure which cause the error happened around the time i had both up and running properly.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Forum Logout Broken (6th Sep 09 at 2:44pm UTC)
Hi Dwight,

Can you try clearing your cookies (to get yourself fully logged out) and then seeing if it happens again? I've tweaked your forum settings so it will attempt to set the cookies (and unset the cookies) using the top level domain (divineshadowsonline.com). I'm pretty sure that's the same tweak I had to make for another site using the API with a custom domain {Smile}

- Ross

Image
dog199200
Guest
Re: Forum Logout Broken (6th Sep 09 at 8:40pm UTC)
OK the button worked, but not completely. i think the problem is because it keeps trying to cross over the domains. In the end it doesn't matter. I plan on finding some way so that the non www. version of the domain redirects to the www. version of the domain, making sure that the cookie is always saved properly. Because as it is it doesn't sign the forum back out. I can sign in at the website and it signs in on the site and the website with or without the www., but if i go to the forum and sign out, it signs out of everything but the website with the www. Do you know the DNS format to get a redirect setup for a domain?

Edit: the www. version of the forum not logging out the api on the website might be an glitch in the forum not checking for the www. sub-domain, but its ok, when the menu rebuild gets done it should allow the link for the sites logout and not the forums logout, which seems to work perfectly, so it should fix the problem.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Forum Logout Broken (6th Sep 09 at 10:55pm UTC)
The cookies get set for a wide variety of possible domains. This includes:

<forum username>.vforums.co.uk
<forum username>.virtualforums.co.uk
<the current domain being accessed>
<your forums custom domain> (divineshadowsonline.com)

Not all of these are successfully sent because of cross domain policies. If all of the www. variations were sent then there would still be issues with cross domain policies. But that shouldn't be an issue if the user always uses the same domain.

Regarding the non-www to www, this can be done a few ways. The method I often use is through the .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} !(^www\.) [NC]
RewriteRule ^(.*?)$ http://www.your-domain-name.com/$1 [L,R=301]


- Ross

Image
dog199200
Guest
Re: Forum Logout Broken (6th Sep 09 at 10:57pm UTC)
yea so then forwarding the non www. domain to the www. should fix the problem like I thought, right?
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Forum Logout Broken (6th Sep 09 at 11:03pm UTC)
Oops. I just modified my above post with a snippet of code which will do that kind of redirection through .htaccess (it can also be done through PHP). Took me longer to find than I had thought it would {Smile}

Image
dog199200
Guest
Re: Forum Logout Broken (6th Sep 09 at 11:28pm UTC)
ok i figured that out rather easy, but i'm wondering, how can i go about doing the same thing for the forum. I tried this ion order to get the webiste and the forum to do it but it didn't work:

Code:
 
  1. RewriteEngine on
  2. RewriteCond %{HTTP_HOST} !(^www\.) [NC]
  3. RewriteRule ^(.*?)$ http://www.divineshadowsonline.com/$1 [L,R=301]
  4. RewriteEngine on
  5. RewriteCond %{HTTP_HOST} !(^www\.) [NC]
  6. RewriteRule ^(.*?)$ http://www.forum.divineshadowsonline.com/$1 [L,R=301]
 
 Printable View

All times are GMT+0 :: The current time is 5:34pm
Page generated in 0.4325 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums