 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
beleg
Joined: 24 Nov 2002 Posts: 14
|
Posted: Tue Mar 04, 2003 11:35 pm Post subject: How to Log In with Safari ? the Solution |
|
|
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 |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Wed Mar 05, 2003 5:53 pm Post subject: |
|
|
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 |
|
 |
beleg
Joined: 24 Nov 2002 Posts: 14
|
Posted: Wed Mar 05, 2003 11:45 pm Post subject: |
|
|
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 |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Thu Mar 06, 2003 2:12 am Post subject: |
|
|
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 |
|
 |
obiwanadobe
Joined: 21 Mar 2003 Posts: 1 Location: Round Rock, Tx
|
Posted: Fri Mar 21, 2003 6:28 am Post subject: Cookie fix on it's way |
|
|
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 |
|
 |
|
|
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
|