I have a method in a file that web apps and windows app use. The problem is session. how can I set session that I can set no matter if a web or windows app