how to use sc_alert,sc_confirm() macros in library and include them in application.

how to maintain session_id in database and check in...