View previous topic :: View next topic |
Author |
Message |
Drinyth
Joined: 28 Oct 2002 Posts: 17
|
Posted: Wed Jan 08, 2003 2:06 am Post subject: Login Problems with Safari? |
|
|
I don't know how many users here are Mac users, but with Apple's new browser Safari, I'm having troubles logging into my b2 site. The login does work with IE and Chimera, but doesn't work with Safari.
It perhaps may be a Safari issue that needs to be ironed out, but I will say that Safari has been able to log into most other forums and what not requiring form authentication (like this forum).
In any case, I just wanted to post this in case a developer has access to a Mac and Safari and maybe could take a look at it? Thanks! |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Wed Jan 08, 2003 4:35 am Post subject: |
|
|
I can confirm that the problem exists with Safari.
I enter my login info into b2login.php and it begins to redirect, but displays the login form again, this time with b2edit.php as the page being shown in the location bar.
I checked and the login/user cookies are being set, maybe it isn't returning them in an expected manner?
Any Konqueror users out there see if this happens in other Konqueror based broswers? _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
Jesuit
Joined: 09 Jan 2003 Posts: 6 Location: Kentucky
|
Posted: Thu Jan 09, 2003 5:23 am Post subject: Yeah me as well |
|
|
I can confirm that the problem exists, and it looks like it only exists for b2, as far as I can tell MT is working fine with Safari, so there is a breakdown in the way b2 handles the cookies.
I will try and look at it this week and see if there is an easy fix.
Chris
http://www.chrisjdavis.org |
|
Back to top |
|
 |
Jesuit
Joined: 09 Jan 2003 Posts: 6 Location: Kentucky
|
Posted: Thu Jan 09, 2003 5:59 am Post subject: Problem Solved |
|
|
Well glory glory, here is the way to fix the login problem with b2:
in your b2login.php file find this around line 130:
Code: | } else {
$user_login=$log;
$user_pass=$pwd;
setcookie("cafeloguser",$user_login,time()+31536000);
if ($pass_is_md5) {
setcookie("cafelogpass",$user_pass,time()+31536000);
} else {
setcookie("cafelogpass",md5($user_pass),time()+31536000); |
See anything missing there? Hmmm.... yeah that is right you need to add the "/" to the end of those three lines and BAM! you can log in.
Please please no applause.
Oh and if you don't know where to add the "/" here is a little hint:
Code: | setcookie("cafelogpass",$user_pass,time()+31536000, "/"); |
There have fun.
Chris |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Thu Jan 09, 2003 6:22 am Post subject: |
|
|
Hi Chris,
Good show
But, would you use that magic link provided by Apple and pass this back to Steve and crew? This is a bug in the browser code. The domain field is optional and not required in the cookie. (I'd do it myself if I had a OS X system.)
Thanks,
michael e |
|
Back to top |
|
 |
Jesuit
Joined: 09 Jan 2003 Posts: 6 Location: Kentucky
|
Posted: Thu Jan 09, 2003 6:26 am Post subject: Sure. |
|
|
Quote: | But, would you use that magic link provided by Apple and pass this back to Steve and crew? This is a bug in the browser code. The domain field is optional and not required in the cookie. (I'd do it myself if I had a OS X system.) |
No problem, and I am sorry for your loss:(no osx system).
Chris |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Thu Jan 09, 2003 6:32 am Post subject: |
|
|
Hi,
I appreciate your empathy Rest assured it is on my list!
BTW, have you found many sites that cause Safari to choke? And do you like it as much as I think I would?
Yes this is off topic. We'll keep it short......
michael |
|
Back to top |
|
 |
Jesuit
Joined: 09 Jan 2003 Posts: 6 Location: Kentucky
|
Posted: Thu Jan 09, 2003 6:38 am Post subject: |
|
|
Quote: | have you found many sites that cause Safari to choke? And do you like it as much as I think I would? |
Believe it or not no. The only problematic sites have been very flash intensive; and that has just been slow flash playback.
And yeah I love it. I have been very active with Chimera for the past 6 months, I created the first bookmark dock menu, and released the first serious hacks for it, so saying this is kinda painful, but now that I can log into my blog, I don't have much use for Chimera. As soon as you can I recommend getting your nose in front of a G4 and taking it for a test drive. Very impressive.
** content edited out due to stupidity on my part. ------------------------------------------------------------------------------**
Chris
Last edited by Jesuit on Thu Jan 09, 2003 7:05 am; edited 1 time in total |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Thu Jan 09, 2003 6:47 am Post subject: |
|
|
Chris,
Let me clear up one thing. I am not Michel V (the creator of b2) I, my friend an just a user and advocate of b2! And on behalf of Michel, your welcome.
Michael e |
|
Back to top |
|
 |
Jesuit
Joined: 09 Jan 2003 Posts: 6 Location: Kentucky
|
Posted: Thu Jan 09, 2003 6:51 am Post subject: |
|
|
Ahhh didn't notice the e, instead of a v... blast this overlooking disease... BLAST!
uhhhh... sorry channeling Chuck Heston.
Chris |
|
Back to top |
|
 |
|