Delete session Variable 

Delete session Variable 

  

Hello all,

I need to "clean" a session variable. That variable is a Record.

Anyone as an idea, how to do this?


Hi Nuno,

You can assign an empty Record to the session variable. It's not a session variable deletion, but it's the same. Is this enough?
 

Regards,
João Portela

Isn't the better solution, but solves the problem.

Thanks
Hi Nuno,

Yes, apparently is not a "pretty" solution, but since you cannot distinguish a new session variable (that was deleted) from a variable that contains a empty record, it has the same effect. When a session variable does not exists (for instance, if was really deleted) when you access it, the Platform will create a new empty record, so it has the same behavior.


Regards,
João Portela