Solved

Deleting or over writing Session Variable

Posted on 2006-07-05
1
218 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
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now