Firefox PHP

Something is not connecting

Posted by KingsleyHill 
Re: Something is not connecting
August 14, 2009 10:47AM
Re: Something is not connecting
August 14, 2009 11:09AM
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
Re: Something is not connecting
August 14, 2009 11:21AM
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
Re: Something is not connecting
August 14, 2009 11:23AM
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
Re: Something is not connecting
August 14, 2009 12:45PM
IT WORKS!

Thanks for the help.

As I progress with this I may have more questions...but at this point I am getting what I want.
Re: Something is not connecting
August 14, 2009 04:06PM
So the redir is working too now?
Well done! ;-)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Something is not connecting
August 14, 2009 05:01PM
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.
Re: Something is not connecting
August 14, 2009 07:15PM
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.
Sorry, only registered users may post in this forum.

Click here to login