boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Log In with Safari ? the Solution

 
Post new topic   Reply to topic    boardom Forum Index -> Installation issues
View previous topic :: View next topic  
Author Message
beleg



Joined: 24 Nov 2002
Posts: 14

PostPosted: Tue Mar 04, 2003 11:35 pm    Post subject: How to Log In with Safari ? the Solution Reply with quote

The Mac Users here must have a problem with login with Apple's new browser Safari: b2login.php doesn't redirects to b2edit.php (or something like this) after the login... well a cookie problem (it's not the first time with Safari )

This is how I resolved it (after encouter the same problem - and the solution with PHP Nuke)

b2login.php
somewhere arount the line 133, you can see that lines :
Code:
      setcookie("cafeloguser",$user_login,time()+31536000);
      if ($pass_is_md5) {
         setcookie("cafelogpass",$user_pass,time()+31536000);
      } else {
         setcookie("cafelogpass",md5($user_pass),time()+31536000);
      }


you just have to add the string ,"/" at the end of each setcookie arguments, like this :

Code:
      setcookie("cafeloguser",$user_login,time()+31536000,"/");
      if ($pass_is_md5) {
         setcookie("cafelogpass",$user_pass,time()+31536000,"/");
      } else {
         setcookie("cafelogpass",md5($user_pass),time()+31536000,"/");
      }


You can make the same thing in b2profile.php line 84
Code:
   setcookie("cafelogpass",md5($newuser_pass),time()+31536000);

to :
Code:
      setcookie("cafelogpass",md5($newuser_pass),time()+31536000,"/");


and in b2comments.post.php, on lines : 122, 123, 124
Code:
   setcookie("comment_author",$author, time()+30000000);
   setcookie("comment_author_email",$email, time()+30000000);
   setcookie("comment_author_url",$url, time()+30000000);


to be :

Code:
   setcookie("comment_author",$author, time()+30000000,"/");
   setcookie("comment_author_email",$email, time()+30000000,"/");
   setcookie("comment_author_url",$url, time()+30000000,"/");


hope this little 'hack' will help you =)

for me it works perfectly

(and I'm french, so pardon my grammar and spelling errors)

PS: It could be usefull to put it as sticky thread, don't u think ?
_________________
Beleg
Born to dire des conneries
Back to top
View user's profile Send private message Visit poster's website AIM Address
alex_t_king



Joined: 09 Oct 2002
Posts: 194

PostPosted: Wed Mar 05, 2003 5:53 pm    Post subject: Reply with quote

Even better would be Apple fixing the bug so you don't *have* to do this
_________________
Yahoo! Messenger ID: alex_t_king
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
beleg



Joined: 24 Nov 2002
Posts: 14

PostPosted: Wed Mar 05, 2003 11:45 pm    Post subject: Reply with quote

well, errr .. yeah

we still can wait

Since the begining, Apple has problems with cookies (and some other things ... https, sites using dll ...), and I dont know how to prevent Safari's problem
_________________
Beleg
Born to dire des conneries
Back to top
View user's profile Send private message Visit poster's website AIM Address
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Thu Mar 06, 2003 2:12 am    Post subject: Reply with quote

But, please tell me you clicked on that very nice button Apple provided for reporting errors/issues did you not???

If not, please do and inform Apple of their non compliance to standards and protocols.

This coming from a VERY loyal Mac user.
_________________
Kind Regards,
Michael e
Back to top
View user's profile Send private message Send e-mail
obiwanadobe



Joined: 21 Mar 2003
Posts: 1
Location: Round Rock, Tx

PostPosted: Fri Mar 21, 2003 6:28 am    Post subject: Cookie fix on it's way Reply with quote

Dave Hyatt (one of the guys behind Safari and Camino) posted on his blog that they have a fix on the cookie issues with Safari and will be included in an upcoming release.

http://www.mozillazine.org/weblogs/hyatt/
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Installation issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group