By medicpark on
I am running Drupal 5.2, Linux system, sql 5.0, php 5.
This question has been raised in the previous post: how come IE causes problems when login. It does not register. Some has postulated that it is a cookie problem, some have offered solutions.
http://drupal.org/node/6696?page=1
One of the solutions was to : edit settings.php and delete a certain part of it containing the cookies.
Other solutions is to add $GLOBALS['tempUser'] = $user; to the end of index.php file.
It worked for drupal 5.1, but not for drupal 5.2 because the settings.php is changed.
Can anyone help me and just let me know one solution that actually works.
Thanks.
Comments
=-=
saying that you use php5 does not tell us exactly which version of php 5. PHP 5 is up to 5.2.3 could you please be more specific ?
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime
Sorry, I made a mistake. I
Sorry,
I made a mistake.
I am running on php 4.3
I have upgraded to PHP
I have upgraded to PHP 5.1.6
It still does not work.
=-=
Did adding $GLOBALS['tempUser'] = $user; to the bottom of index.php not work ?
you list this as a method, but aren't clear at to whether or not it works ?
have you seen this handbook page : http://drupal.org/node/77106
there is also this issue that was filed: http://drupal.org/node/70521 where there are a patch or two that may help.
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime
My solution
As I upgraded to v 5.2 again having mistake in IE. I can not login
I seems to be some problem with cookies. It could be because my domain has only 2 letters. I tried many ways but nothing helped.
Solution:
Not elegant, I had to change the core file. If you find better way, let me know.
So
Find file bootstrap.inc and in the file function conf_init() around row 288 should be this:
if (!empty($_SERVER[‚HTTP_HOST‘])) { $cookie_domain = check_plain($_SERVER[‚HTTP_HOST‘]); }Put it in comment.
Done! It should now work.
By
Agir
it works!!!
Hey Agir,
u are great man. It actually works....
You are the man!
Thanks.
oh no, I just realized that
oh no, I just realized that it makes it not work in firefox.
Firefox
Try to clear you cache in firefox. For me it works in IE and Firefox fine.
many thanks!
I spent 2 days to figure out the problem, on my test server everything was ok,
then I moved the site to actual server with 2 letters domain, and from that I cannot
login and cannot add products to cart!
so I could also confirm, that it is work under Drupal 6.12
andor
I have the same problem with IE and Firefox
I've been trying to get Drupal 5.2 running. I have
PHP Version 5.2.1
Apache Version 1.3.3
I can not get the login to work. All the user info seems to be getting into the database just fine. A login with incorrect information correctly tells me the username or password is not recognized. But a proper login just brings be to "Access Denied".
Adding add $GLOBALS['tempUser'] = $user to index.php does not help. It does not seem to be a browser problem. I don't know how to "disable the Drupal cache of the site" as suggested at http://drupal.org/node/77106 . The patches at http://drupal.org/node/70521 seem to be for Drupal 4.5.7. Can these be applied to 5.2?
Any help is appreciated.
it works for me!!!
Thanks a lot agir !
this bootstrap hack worked great!!!
i spent 4 days trying to get this awful behaviour on explorer and 2 letters domains!!