You can find the Session Manager demos in /usr/dt/examples/dtsession. Read the README file for detailed information on the demos.
For more information on Session Manager, see the relevant man pages and the Solaris Common Desktop Environment: Programmer's Guide.