thanks! it worked...but it shows a warning:
Warning: Cannot send session cookie - headers already sent by (output started at c:\phpdev\www\abc.php:10) in c:\phpdev\www\abc.php on line 11
Warning: Cannot send session cache limiter - headers already sent (output started at c:\phpdev\www\abc.php:10) in c:\phpdev\www\abc.php on line 11
Line 11 is : session_start();
and then how would i use the $user in another php file ?