Click here to Skip to main content
15,900,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello.
i wanna know that i can add 2 or several keys with name "xxx" and different value for each of them??
thanks
Posted

1 solution

No, you cannot. If you are rewriting it, the value will get replaced.

So for example,
C#
Session["SomeKey"] = "some value";
.
.
Session["SomeKey"] = "changed value";

So if you get the value of Session["SomeKey"], it will be changed value

Hope that clears your doubt.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900