B
bthumber
I have a group of four if statements. The user chooses which session on a
different page by making choices. The functionally is, if the user choose a
session the program give the user a different set of pages to work with. The
problem I run into is if the user made choices to get Session["d"] then later
want to choose session's a, b, or c the program is stuck on Session["d"]. I
tried a switch but that cause me more issue than already had. Is there a way
to get around this problem. Session.Abondon, Clear and remove() caused error
because there are session at the start of the program.
if(Session["a"] != null)
do something;
if(Session["b"] != null)
do something;
if(Session["c"] != null)
do something;
if(Session["d"] != null)
do something;
different page by making choices. The functionally is, if the user choose a
session the program give the user a different set of pages to work with. The
problem I run into is if the user made choices to get Session["d"] then later
want to choose session's a, b, or c the program is stuck on Session["d"]. I
tried a switch but that cause me more issue than already had. Is there a way
to get around this problem. Session.Abondon, Clear and remove() caused error
because there are session at the start of the program.
if(Session["a"] != null)
do something;
if(Session["b"] != null)
do something;
if(Session["c"] != null)
do something;
if(Session["d"] != null)
do something;