well i worked on it and found out the solution below...
//this is written behind the global.asax file
CODE
void Session_Start(object sender, EventArgs e)
{
Session["StrSessionStart"];
Session["strSessionEnd"];
}
//this is written behind the login button
Session["StrSesssionStart"] = txtStartSessionDate.Text;
string strSessionStart = txtStartSessionDate.Text + " " + txtStartSessionTime.Text;
DateTime testdate = DateTime.ParseExact(strSessionStart, "M/d/yyyy H:mm tt", null);
Session.DateSessionStart = testdate;
//this is written behind the logout button.
protected void Button1_Click(object sender, EventArgs e)
{
string strSessionEnd = txtStartSessionDate.Text + " " + txtEndSessionTime.Text;
Session.DateSessionEnd = DateTime.ParseExact(strSessionEnd, "M/d/yyyy H:mm ", null);
}
but the error is... it doesnt recognise Session in the global.asax file. it says only call,assignment,increment,decrement can be used as a statement...
i hope to get some help from u guys now..
thanks