[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Deleting or over writing Session Variable

Hi Experts,
Have what I think should be an easy question.  I have a session variable that I want to delete and replace with an updated one.  For example:  user goes to a page and enters a date and login name and is redirected to another page to input data.  After they finish this date's data, they would hit the back button or click add another day and then change the date.  The problem is I can't get the date to change.  I have tried Session.Content.Remove["data"], Session.Content.Removeall() and simply just over writing the variable, but all fails until the session has timed out.  Any suggestions?

Thanks,
Paul
0
pwtucker
Asked:
pwtucker
1 Solution
 
topdog770Commented:
After you collect or use the Session variable.. set it to null
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now