Hi guys, i am a freshman here.. I would like to ask a things about Session.. Does session only work to be read for once? and if you change it into new value, it will not be able to be read in other page?
Scenario..
I have page A and Page B. I assign a new Session("cart") = 1. Then I can read in Page B that Session("cart") = 1.
Due to some reason, I have changed the Session("cart") = 2 in page A. Then i go back to Page B again. When I read the Session("cart") in Page B, it still contain the old value which is 1.
Is that the Session actually work? Is there anyway to solve the problem?
Thanks for any help..
Scenario..
I have page A and Page B. I assign a new Session("cart") = 1. Then I can read in Page B that Session("cart") = 1.
Due to some reason, I have changed the Session("cart") = 2 in page A. Then i go back to Page B again. When I read the Session("cart") in Page B, it still contain the old value which is 1.
Is that the Session actually work? Is there anyway to solve the problem?
Thanks for any help..
Comment