To clear the user session from the Runtime application, Clear command is used.
This command clears the existing orphan session from the Runtime application and allows you to create a new session. An orphan session is a crashed or disconnected client/session from the runtime application.
You can use any of the following procedures to clear an orphan session:
To clear an orphan session from the Runtime Application:
Click the Start icon from the bottom left corner of the screen. The Start screen appears with the list of applications.
Click Administration Tool or type Administration Tool on the desktop.
Note: You can also right-click the Start screen and click All Apps for the list of applications.
Right-click the System in the Administration Tool, and go to All Tasks > List Current Users. The Current System Clients window appears with the list of open session.
Select the open session and click Clear Selected. This clears the selected orphan session.
To clear an orphan session from the Administrator program command line interface:
Click the Start icon from the bottom left corner of the screen. The Start screen appears with the list of applications.
Click Run or type Run on the desktop.
Type cmd and press Enter to open command prompt.
Type Admin <system>, where <system> is the name of your system.
Type :WHO. This lists all the open sessions.
Type :CLEAR <name of the orphan session> , and press Enter. This clears the orphan session.
To clear an orphan session from a client such as Winforms, VB.NET, or ASP.NET. In this case, a Presentation Client:
Open the Client session.
Note: You need to sign in to a user session on the system.
Go to the Console or Run a System Command window.
Note: For ASP.NET client, right-click on the ASP.NET client and select Show Console to open Component Enabler ASP.NET Console.
Type :WHO in the Command text box and press Enter. This displays the list of orphan sessions.
Note: For ASP.NET, type :WHO and click Transmit.
In the Run a System Command window, type :CLEAR <name of the orphan session>, and press Enter or click Clear.
Note: The name of the client window varies with the client that you use.
Administration command
The administration command to clear a session is:
:CLEAR <station name/session number>
Where,
station name is the name of the known session which needs to be cleared.
session number is the internal session number for an anonymous session.
Note: You can obtain the session number for an anonymous session using the :WHO command or the List Current Users option.
Security
Clear command is an Administrative Tool. To access this command, you should be a member of the Administrator Application.