I have a module in Drupal 6 that saves some information in the $_SESSION array. I use this information to customize some content in another page.The problem is that when I’m not logged in Drupal, the information is not saved in the session. When I’m logged in, it works as expected.
After a lots off hard work about this issue i just figured out what was causing the problem. In order to access session data for anonymous users the ‘Users’ table in the drupal database must contain a user with uid = 0. I found that in my database somehow the user entry with uid = 0 got modified and that is what was causing the problem.
Enjoy Code! | Enjoy Raghunath Blog