This message results when a user tries to use the logout(1) command from a shell other than the one started at login time.
To quit a non-login shell, use the exit(1) command. Continue doing so until you have logged out.
For more general information on the login shell, see the section on customizing your work environment in the Solaris Advanced User's Guide.