In universal mobile telecommunications system (UMTS), session management (SM) maintains a communication session between a user equipment (UE) and the core network. 3GPP TS 24.008 specifies the SM functions and the communication protocols between the UE and the core network. However, the interaction between the SM and other entities in the UE are not specified in detail. This paper designs and implements the SM software. We use a finite state machine (FSM) to model the SM functions. Based on the FSM and the primitives, we describe how to set up the development steps to implement the SM at the UE.