Are you sure that you are killing the login process of the user? If you are just killing a process run by the user, that does not mean that you are logging the user out.
If you want to kill a user's session, you have to kill the login shell. These can be seen by using the 'ps' command:
Code:
ps -ef | grep -e -sh -e -csh -e -ksh |grep -v grep
Then you can kill the -<shell> processes. Check if this works.
And also, (in solaris) the /var/adm/utmpx file is used by who to check logged in users. If you are using a different os, just check the man page for utmpx (it will be present in almost all of 'em).