Well I have spent the last 7 hours trying to find why my session variables are getting trashed, and I am not stumped beyond belief because I can’t work it out.
Here is the scenario, I have a handler that looks something like this.
rc.andrew = IsQuery(session.ServiceQuery);
if(IsQuery(session.ServiceQuery) == ‘no’) {
transaction isolation=“serializable” {
prc.services = supplierService.getServicesByCategory(event);
session.ServiceQuery = duplicate(prc.services) ;
}
} else {
prc.services = duplicate(session.ServiceQuery);
}
Now I have a view that dumps the information our and every now and then the variable rc.andrew will contain no, I started out by using the sessionStorage and went to direct session manipulation to see if I wasn’t seeing things. And for the life of me I can’t see what the problem is.
I am going to take a stab in the dark here, and think that the problem is actually to do with the isQuery() returning a false negative. I just can’t explain this.
Anyone know if this is the case?
Regards,
Andrew Scott