ok, this should work if the session variable is set ok.
I presume the session variable is being set on the cart page, (remember it will be case sensitive.)
if you take out the session variable from the trigger, do you get the discount ?
it should work on your local testing server ok.