added appserver_session_init function