Next Tutorial

Drupal 7 Tutorial Part 16: Drupal 7 Reports & Logs Explained

How To Login User Programatically In Drupal 6

Submitted by anilsagar on Tue, 12/06/2011 - 14:35

Hi,

If you are looking to automatically login Drupal user progrmatically here is the code for you.

$account = user_load($uid);

user_external_login($account);

 

Cheers,

Anil Sagar

0 comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.
©2010 AnilSagar. All rights reserved. Drupal theme by Kiwi Themes.