Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Daniel.
Yes, am in same boat,
Thanks
On Wed, Oct 22, 2008 at 3:16 AM, Daniel Carrera daniel.carrera@zmsl.comwrote:
Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Daniel.
[ Drupal support list | http://lists.drupal.org/ ]
Quoting bharani kumar bharanikumariyerphp@gmail.com:
Yes, am in same boat,
Thanks
On Wed, Oct 22, 2008 at 3:16 AM, Daniel Carrera daniel.carrera@zmsl.comwrote:
Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Set the $cookie_domain variable in the settings.php file. The issue is that you have links going to sample.com and www.sample.com and they are different domains as far as the browser is concerned.
Another option is to use the .htaccess file to redirect to www.sample.com.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Earnie Boyd wrote:
Set the $cookie_domain variable in the settings.php file.
I already have it set to something:
$cookie_domain = 'www.theingots.org';
I've tried testing the hypothesis that the problem only happens when 'www.' is missing from the URL. But I have not managed to confirm the hypothesis because once I manage to login once, the browser seems to login correctly every time, even if I delete cookies.
Another option is to use the .htaccess file to redirect to www.sample.com.
Thanks. I'll look up HTTP redirects. But I'll first try to confirm if the problem has something to do with the domain or not.
Daniel.
Daniel Carrera wrote:
I already have it set to something:
$cookie_domain = 'www.theingots.org';
I've tried testing the hypothesis that the problem only happens when 'www.' is missing from the URL. But I have not managed to confirm the hypothesis because once I manage to login once, the browser seems to login correctly every time, even if I delete cookies.
I can confirm now that the problem is not in the URL. I downloaded a pristine browser and reproduced the problem using the www. URL.
Daniel.
Quoting Daniel Carrera daniel.carrera@zmsl.com:
Daniel Carrera wrote:
I already have it set to something:
$cookie_domain = 'www.theingots.org';
I've tried testing the hypothesis that the problem only happens when 'www.' is missing from the URL. But I have not managed to confirm the hypothesis because once I manage to login once, the browser seems to login correctly every time, even if I delete cookies.
I can confirm now that the problem is not in the URL. I downloaded a pristine browser and reproduced the problem using the www. URL.
Hmm... Are you behind a proxy? Or are your sessions being duplicated or destroyed? Try emptying your sessions and cache tables.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Earnie Boyd wrote:
Hmm... Are you behind a proxy? Or are your sessions being duplicated or destroyed? Try emptying your sessions and cache tables.
Nope, no proxy. I don't think that duplicated sessions are the problem. On the contrary, the problem seems to happen when the browser has no previous history with the website. The following seems to be a reliable (if inconvenient) way to reproduce the problem:
1) Download a brand new browser. No previous history. 2) Go to the site. 3) Login.
** At this point the login silently fails ** ** You are sent to the front page without being logged in **
4) Login a second time.
** Now the login works. **
5) Now you can log out and log back in and it'll work the first time. At this point it becomes difficult to reproduce the problem again without downloading a new browser. It is strange that simply deleting the cookies doesn't seem to be enough to reproduce the problem. But if you haven't used the browser for a while (don't know how long), the problem is replicated.
The problem is not annoying, but it frustrates some users.
Daniel.
Quoting Daniel Carrera daniel.carrera@zmsl.com:
Earnie Boyd wrote:
Hmm... Are you behind a proxy? Or are your sessions being duplicated or destroyed? Try emptying your sessions and cache tables.
Nope, no proxy. I don't think that duplicated sessions are the problem. On the contrary, the problem seems to happen when the browser has no previous history with the website. The following seems to be a reliable (if inconvenient) way to reproduce the problem:
- Download a brand new browser. No previous history.
- Go to the site.
- Login.
** At this point the login silently fails ** ** You are sent to the front page without being logged in **
- Login a second time.
** Now the login works. **
- Now you can log out and log back in and it'll work the first time. At
this point it becomes difficult to reproduce the problem again without downloading a new browser. It is strange that simply deleting the cookies doesn't seem to be enough to reproduce the problem. But if you haven't used the browser for a while (don't know how long), the problem is replicated.
The problem is not annoying, but it frustrates some users.
See http://drupal.org/node/293612 - "user_authenticate() should work when $_COOKIE is empty"
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Have you enabled the blockcache? sometimes if you put in cache many blocks, they don't update regularly.
----- Original Message ----- From: "Daniel Carrera" daniel.carrera@zmsl.com To: support@drupal.org Sent: Tuesday, October 21, 2008 11:46 PM Subject: [support] Login problems
Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Daniel.
[ Drupal support list | http://lists.drupal.org/ ]
I don't know what block cache is. Where do I enable/disable it?
Simone Dal Maso wrote:
Have you enabled the blockcache? sometimes if you put in cache many blocks, they don't update regularly.
----- Original Message ----- From: "Daniel Carrera" daniel.carrera@zmsl.com To: support@drupal.org Sent: Tuesday, October 21, 2008 11:46 PM Subject: [support] Login problems
Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Daniel.
[ Drupal support list | http://lists.drupal.org/ ]
Ok don't worry. Blockcache is a module, but if you haven't installed it, this is not the problem
----- Original Message ----- From: "Daniel Carrera" daniel.carrera@zmsl.com To: support@drupal.org Sent: Wednesday, October 22, 2008 2:25 PM Subject: Re: [support] Login problems
I don't know what block cache is. Where do I enable/disable it?
Simone Dal Maso wrote:
Have you enabled the blockcache? sometimes if you put in cache many blocks, they don't update regularly.
----- Original Message ----- From: "Daniel Carrera" daniel.carrera@zmsl.com To: support@drupal.org Sent: Tuesday, October 21, 2008 11:46 PM Subject: [support] Login problems
Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Daniel.
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Ok, thanks.
Simone Dal Maso wrote:
Ok don't worry. Blockcache is a module, but if you haven't installed it, this is not the problem
----- Original Message ----- From: "Daniel Carrera" daniel.carrera@zmsl.com To: support@drupal.org Sent: Wednesday, October 22, 2008 2:25 PM Subject: Re: [support] Login problems
I don't know what block cache is. Where do I enable/disable it?
Simone Dal Maso wrote:
Have you enabled the blockcache? sometimes if you put in cache many blocks, they don't update regularly.
----- Original Message ----- From: "Daniel Carrera" daniel.carrera@zmsl.com To: support@drupal.org Sent: Tuesday, October 21, 2008 11:46 PM Subject: [support] Login problems
Hello,
I have a strange problem on my Drupal 5 site. Some times you have to login twice. That is, you enter your user name and password and when the page reloads you are not logged in at all. So you have to go back to the login page and login again.
This seems to happen randomly. It happens perhaps 20% of the time.
Any ideas?
Daniel.
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]