Login Twice problem

When I first wrote this, I did not mention anything about the Drupal software version installed automatically by Fantastico. At that time the Drupal version was 4.6.3.

Today the Drupal version is 4.7.2 found in most cPanel/Fantastico installation.

There's a bug though after installing the Drupal website when we first login. We have to login twice before we 'get in'. First time we logged in, it's like nothing happened. This is due to some cookies problem.

If you are interested in the login problems, read this.

The remedy is this (it works for me).

Go to your account at:-
http://www.my_domain.com/cpanel
Press Enter or Select 'Go'.

Enter username, password.

Select > File Manager > [folder icon]_public_html > modules > user.module (wait for details appear upper right hand corner) Edit File > [scroll down and look for codes below and COMMENT OUT the three lines (by putting double forward slashes) > Save

user_module_invoke('login', $form_values, $user);
// $old_session_id = session_id();
// session_regenerate_id();
// db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'", session_id(), $old_session_id);

Logout of your cPanel.

The "login twice" problem will go away.