Storing values in session in C#

It is similar to view state.

Synatx:
Session[id] = value;


Example:
//Storing UserName in Session
Session["UserName"] = txtUser.Text;