Previous Thread
Next Thread
Print Thread
Hop To
#207454 02/27/2008 12:18 PM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
I have a feeling there’s an answer to this query on this board somewhere, can’t find it though. Ever since upgrading to version 7 neither I nor my users can login on the first try; i.e., it takes two login attempts before login is successful. Anyone know why this is and/or how to fix it?

Thanks!

Last edited by EJH; 02/27/2008 12:19 PM.
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
It is probably a cross domain issue, when you move over from www.domain.com to domain.com or vica versa.


[Linked Image from siemons.org]
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

If what blaaskaak said is true, try entering both domains (with and without 'www'), and any other domains used here:

Control Panel » Primary Settings » Advanced Options » Domains for HTTP Referer Check:

Example:
http://example.com|http://www.example.com


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
That was it! Thanks!

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
jgeoff, that won't matter, it will always direct the user to whatever url is set as your primary when posting forms (a new thread, a reply, a login, etc). The only real fix for this is to forward users to one domain when they access threads (as cross domain cookies are a nono) -OR- Rick could build in some sort of check for the domain the user is on when accessing yoru board and forward accordingly (which I like as you can also build in weather or not they're accessing through SSL or not)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

I'm not disagreeing with you, I was simply just trying to make a suggestion that might help him/her (or anyone searching this issue in the future), given the symptoms. And I'm glad it worked out for him/her. wink


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
"them" perhaps; shorter that way... lol...

BTW, wasn't meaning to sound mean with my statement, was horrendously busy when typing (as will I be for the rest of the night configuring a client's server)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

"them" means more than one person. tongue

Luckily I have a thick skin, so no prob. I just like trying to give suggestions to help -- during the fact... and more often than not, they seem to be helpful. wink


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Another one is that if they have your forums on a Favorites
and the URL is with or with out the "www" ive found with
my members is the main cause of this wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
EJH, there are 2 solutions to the problem. Either add some code that will force your url one way (a hack is available on ubbdev), or using an .htaccess file to force them.

Since our board is reachable through 2 domains, I opted for adding the code. If your issue is just www. or non www. I'd suggest the .htaccess way.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I own like 8 domains for my site, and it's pretty dynamic... So I would so prefer the ability for threads to be "smart" about posting form information...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
That would be the best, that any url would just have a look at the current url.

That actually wouldn't be such a difficult hack, just check the domain the user is currently on and replace the full url in the config with that value.

But it would need more, like automaticly correcting posted url's on the forum.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
easy, php http_host variable; you can also check if https is on in php; so it's not like it's a matter of compatability as both existed in php4 wink...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
But only that would not deliver a problem free environment!


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Your last statement confuses me...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
If you do not force everybody to the same url, there is no real solution of a trouble free forum where you can stay logged in forever. You can get a long way, but not to the very end.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
sure you can, they access the site via a url, they're logged in at that url (with the cookie set to that url); thus it does not forward the user to a DIFFERANT url, they stay at the same domain/subdomain the entire visit.

If they access via a differant url, then it's obvious why they wouldn't be logged in wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
sure you can,

Sure they can't, you say it yourself:

Originally Posted by Gizmo
If they access via a differant url, then it's obvious why they wouldn't be logged in wink


As I said, besides forcing everyone to one url, there is no easy way to make sure they always keep logged in. Especially with external links to the forum.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Actually, that was in reference to the CURRENT system; my comment before was to CHANGE the system to NOT force the form to post to a SPECIFIC URL... Which would cause you to stay on one URL, logged in to that one URL, and never have the forum direct you to any other URL than what you're on...

Thus, yes, it is possible with the CHANGE I propose above...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
Thus, yes, it is possible with the CHANGE I propose above...


Where exactly do you see me arguing that fact? I'm arguing that it's not the total solution.

b.t.w., you would need to do more for that, users can also post links within the forum in a post, islands are cached and do not look at user preferences so a post island would also link to the full url in the config. Probably more trouble just around the horizon when you would actually implement a solution.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
My proposal is for UBB generated links; not user input.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
My proposal is for UBB generated links; not user input.


Post islands are UBB generated links, and come from a cache and are general and not user specific.

I don't have a clue why you keep arguing about it. What's wrong with admitting there is no simple solution that ends all cross domain cookie issues if you want to have your board working (and stay active) on different domains.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I'm saying, if the UBB actually generates a link (as in anything other than the admin putting a link in to a page) that the UBB just read http_host... I fail to see what isn't being understood

Last edited by Gizmo; 02/29/2008 7:19 AM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
< Enjoying the Banter It just like Tennis >



BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Unfortunately, relying on http_host doesn't always work. In fact, Mors' server is a perfect example. We have a function in 7.3 that uses the http_host env variable to generate the current url. That doesn't work on his server, so I had to change it. server_name doesn't work either.

Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
Yes I just run the World Wide Industry standard Windows 2003 Server and IIS6 smile

The EU likes it so much they just fined Bill Gates over a billion dollars smile


Happy Customer !!!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Mors
The EU likes it so much they just fined Bill Gates over a billion dollars smile

Actually it's the second time. The first time Microsoft refused to pay. So far they're not paying this time either, but time will tell wink

Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
Originally Posted by ntdoc
Originally Posted by Mors
The EU likes it so much they just fined Bill Gates over a billion dollars smile

Actually it's the second time. The first time Microsoft refused to pay. So far they're not paying this time either, but time will tell wink

And they will never change whistle

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by Rick
Unfortunately, relying on http_host doesn't always work. In fact, Mors' server is a perfect example. We have a function in 7.3 that uses the http_host env variable to generate the current url. That doesn't work on his server, so I had to change it. server_name doesn't work either.
I'd be curious to see what PHPInfo generates on his server...



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Weird, I'm looking at mors' phpinfo, and it's populating the _SERVER["HTTP_HOST"] variable... Wondering if it was on a differant site on the server


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
I fail to see what isn't being understood


Same here.


[Linked Image from siemons.org]

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 919 guests, and 149 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)