C J
C J

Reputation: 417

Session Funda of destroying a specific session

I am working on Visual Stdio 2008 and my database is in sql server 2005 I am Storing Data in session. i have

Session["FisrstName"]
Session["SecondName"]
Session["LastName"]

i just want that only Session["LastName"] should be destoryed how can i achieve this ????

Upvotes: 0

Views: 137

Answers (1)

Flipster
Flipster

Reputation: 4401

Just set the contents to null.

Session["LastName"] = null;

Upvotes: 4

Related Questions