I'm having a problem with clearing my session variables. I'm using
session variables to pass data from a web form to a pdf generator.
The problem comes in when a user goes back to the original page and
takes data out of the field - the session variable is persisting.
i tried the following, and it didn't work - I'm not sure where to go
from here. Any advice would be appreciated. The string being passed
is both the variable name and the name of the session variable.
public bool CheckIfEmpty (string test)
{
if (test == "")
{
Session.Remove(test);
return true;
}
else
{
return false;
}
}