Solved

Deleting or over writing Session Variable

Posted on 2006-07-05
1
222 Views
Last Modified: 2011-09-20
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
Comment
Question by:pwtucker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
topdog770 earned 250 total points
ID: 17045017
After you collect or use the Session variable.. set it to null
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question