Something is not connecting
Posted by KingsleyHill
Re: Something is not connecting August 14, 2009 10:47AM |
Registered: 16 years ago Posts: 14 |
August 14, 2009 11:09AM |
Admin Registered: 20 years ago Posts: 8,532 |
I'm not fully sure what does what now in your setup, but let's start with the tmp cookie:
I had two cookies when visiting your pages.
One has path / and the other one /DFA-09/
Did you set the cookie path in Phorum? If yes, then change it to /, so cookies are visible outside the Phorum dir as well. Other way around the same: when setting the cookie from your copied form code, then make sure to use / as the cookie path as well. Especially when you need to access the auth cookie later on, it's important to not only make it visible to a subdir on the server.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
I had two cookies when visiting your pages.
One has path / and the other one /DFA-09/
Did you set the cookie path in Phorum? If yes, then change it to /, so cookies are visible outside the Phorum dir as well. Other way around the same: when setting the cookie from your copied form code, then make sure to use / as the cookie path as well. Especially when you need to access the auth cookie later on, it's important to not only make it visible to a subdir on the server.
Maurice Makaay
Phorum Development Team



August 14, 2009 11:21AM |
Admin Registered: 20 years ago Posts: 8,532 |
Yes, that's it. I tried it with the login that you sent my by PM (thanks for that) and I saw:
External login form -> cookie goes to /DFA-09/ path
Phorum login form -> cookie goes to / path
So I think that the setcookie call from your external login form needs an extra argument to force it to the "/" path.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
External login form -> cookie goes to /DFA-09/ path
Phorum login form -> cookie goes to / path
So I think that the setcookie call from your external login form needs an extra argument to force it to the "/" path.
Maurice Makaay
Phorum Development Team



Re: Something is not connecting August 14, 2009 11:23AM |
Registered: 16 years ago Posts: 14 |
When I create the first (tmp) cookie, I added a path '/' and that has eliminated the appearance of the session id in the URL. But it has not eliminated the problem that "redir" doesn't work. Also after I login Phorum sets the v5 cookie like 5 times (according to IE), is that normal?
Could the problem be that DFA-09 is a directory at the same level as forum?
public_html
/ \
DFA-09 forum
Could the problem be that DFA-09 is a directory at the same level as forum?
public_html
/ \
DFA-09 forum
Re: Something is not connecting August 14, 2009 12:45PM |
Registered: 16 years ago Posts: 14 |
August 14, 2009 04:06PM |
Admin Registered: 20 years ago Posts: 8,532 |
So the redir is working too now?
Well done! ;-)
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Well done! ;-)
Maurice Makaay
Phorum Development Team



Re: Something is not connecting August 14, 2009 05:01PM |
Registered: 16 years ago Posts: 14 |
Yes, the redir is working fine. I have this working almost the way I want it to.
As promised...another question...
Failed Login
Is there any way to return to my page on a failed login? If I login incorrectly I go to the forum "failed login" screen which, of course, does not even have a link to return to my index page.
As promised...another question...
Failed Login
Is there any way to return to my page on a failed login? If I login incorrectly I go to the forum "failed login" screen which, of course, does not even have a link to return to my index page.
August 14, 2009 07:15PM |
Admin Registered: 20 years ago Posts: 8,532 |
This would require a simple module that hooks into the "failed_login" hook to do the redirect. You'd have to pass an extra variable in the redirect URL to tell your login page to show an error message.
Another idea could be to hack the login.tpl template, by adding redirect code to the start of that file. If you never want to show the Phorum's login screen, then this would be an okay solution.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Edited 1 time(s). Last edit at 08/14/2009 07:17PM by Maurice Makaay.
Another idea could be to hack the login.tpl template, by adding redirect code to the start of that file. If you never want to show the Phorum's login screen, then this would be an okay solution.
Maurice Makaay
Phorum Development Team



Edited 1 time(s). Last edit at 08/14/2009 07:17PM by Maurice Makaay.
Sorry, only registered users may post in this forum.