In ASP.NET or C# i want to use sessions, Can any body tell me how we can implement sessions in .NET and where can we declare these session.
Thanks
sanjay
if u want store login user id in session ,following code is usefull for you,
assign user id to session;
Session["userid"]=txtUserId.textbox.tostring();
if u want same login user id in next page u reassign to one varable
int intLoginId=convert.int32(session["userid"].tostring());
Regards
R.Ganesan.