Thinking about this again, the previous response probably won't work as it will constantly pick up your current session and therefore not allow login. Onsecond thoughts, therefore, you probably need to set a count variable to check whether the number of $LOGNAME 's is greater than 1. Something along the lines of:
usercount=`ps -ef | grep $LOGNAME | wc -l`
if [ $usercount -gt 1 ]
then
echo "Multiple logins not allowed"
exit
else
......normal login script......
fi
Any other ideas gratefully received! Cheers.