|
Joined: Nov 2007
Posts: 24
stranger
|
stranger
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,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
It is probably a cross domain issue, when you move over from www.domain.com to domain.com or vica versa.
|
|
|
|
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
stranger
|
stranger
Joined: Nov 2007
Posts: 24 |
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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)
|
|
|
|
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. 
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,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
"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)
|
|
|
|
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.  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. 
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 
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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...
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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  ...
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
But only that would not deliver a problem free environment!
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Your last statement confuses me...
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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 
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
Sure they can't, you say it yourself: If they access via a differant url, then it's obvious why they wouldn't be logged in  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.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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...
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
My proposal is for UBB generated links; not user input.
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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.
|
|
|
|
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
Former Developer
|
Former Developer
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
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
Yes I just run the World Wide Industry standard Windows 2003 Server and IIS6  The EU likes it so much they just fined Bill Gates over a billion dollars 
Happy Customer !!!
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
The EU likes it so much they just fined Bill Gates over a billion dollars  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 
|
|
|
|
Joined: May 2006
Posts: 16
stranger
|
stranger
Joined: May 2006
Posts: 16 |
The EU likes it so much they just fined Bill Gates over a billion dollars  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  And they will never change 
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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...
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
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
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 1
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 1 |
I fail to see what isn't being understood Same here.
|
|
|
2 members (Gizmo, Conrad),
137
guests, and
156
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|