Hi Linjo,
Thank you for you response... but that is just what i don't want. i want the user to stayed logged on, and that if a different user creates a new session through vm view, that the old user is logged off.
the script you showed is just that the systems automaticly logs off a user if its has been idle for to long, just with more features