473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Over Write Value in Session State?

Can you write over a value in session or do you have to delete the value
first then re-create it?

**Example:
I have the following value in session state...
Statement 1 -- Session.Add("Email", "someone@ someplace.com ")

And I want to change it to the following value...
Statement 2 -- Session.Add("Email", "someone@ msn.com ")

Do I just execute statement 2 or do I have to delete statement 1 first?
Nov 16 '05 #1
2 1449
yes you can overwrite a value in session

you can even do:

Session["Email"] = "so*****@msn.com";

HTH

Ollie Riches

"Leon" <vn*****@msn.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
Can you write over a value in session or do you have to delete the value
first then re-create it?

**Example:
I have the following value in session state...
Statement 1 -- Session.Add("Email", "someone@ someplace.com ")

And I want to change it to the following value...
Statement 2 -- Session.Add("Email", "someone@ msn.com ")

Do I just execute statement 2 or do I have to delete statement 1 first?

Nov 16 '05 #2
Thanks!
"Ollie" <ol**********@hotmail.com> wrote in message
news:en**************@TK2MSFTNGP09.phx.gbl...
yes you can overwrite a value in session

you can even do:

Session["Email"] = "so*****@msn.com";

HTH

Ollie Riches

"Leon" <vn*****@msn.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
Can you write over a value in session or do you have to delete the value
first then re-create it?

**Example:
I have the following value in session state...
Statement 1 -- Session.Add("Email", "someone@ someplace.com ")

And I want to change it to the following value...
Statement 2 -- Session.Add("Email", "someone@ msn.com ")

Do I just execute statement 2 or do I have to delete statement 1 first?


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Leon | last post by:
Can you write over a value in session or do you have to delete the value first then re-create it? **Example: I have the following value in session state... Statement 1 -- Session.Add("Email",...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
10
by: rlueneberg | last post by:
I am trying to foward the old sessionID using "Session.SessionID" to an HttpWebRequest CookieContainer so that I can capture the requested page session variables but it is not working as it is...
4
by: Smokey Grindle | last post by:
What are the advantages of using ASP.NET's session state server service over using InProc state sessions? Also if you have a state server service running, is there any way to find out when a...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.