If I declare a global variable for my page, is it accessible only in this session?

Asked

Viewed 328 times

-1

Hello,

I have a question. If I declare global variables for page, they are unique to this session or they can be changed in other sessions? inserir a descrição da imagem aqui

I had problems in other systems that I developed with the use of properties created in class.Cs that were available in all sessions and so one session had its data changed by another session being executed by another user.

1 answer

0

There is nothing global in your code, just the string id that will always be initialized with the value "rd1" every time the class espelho_de_vendas is entered, it will receive this value, which can be manipulated later, for example, in the event of Page_Load and will only take effect for those who requested the page.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.