Session Variables getting trashed

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” { = supplierService.getServicesByCategory(event);

session.ServiceQuery = duplicate( ;


} else { = 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?


Andrew Scott

Ok, it appears that I have tracked it down to a rewrite rule.

So can anyone tell me who might no more than me, why this might fail for images?

RewriteCond %{REQUEST_URI} .(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|xml|ico)$

RewriteRule ^(.*)$ - [NC,L]

Because what I can tell you is that every now and then, the event is sometimes got


And from what I can tell so far all images on this page are in that list.


Andrew Scott