Coolbe, This is discussed in full detail in the documentation. It is pretty complete. Give it a read and let me know if you have a specific question.
Good point yogeshb, There is the session_ID, but, I prefer the component_ID. A former Pro/GENIUS taught me this to avoid having identicle session...