hi frens,
how can i get the user information after he logged in. i need to keep logs of who is currently logged in. can anyone help me with the code. thank ou.

Comments

nijuley’s picture

use
global $user;
From $user->uid you can get the users userid.
OR
For more details check the the who's online block [and edit that code]
http://drupal.org/node/66638
http://drupal.org/node/148974

nirvaan’s picture

thanx nijulay. i have my problem solved........

Guddie’s picture

Hi,
do u have any idea about how to use user information in phpsnippet for LOGIN DESTINATION module.

I have a situation here,
where i get the user information and i can print the same on my front page,
but the if- else code does not work.

Thankyou.