Fixed double select issue
Added session management library and script
Implemented user_switch()