I use classic ASP and MySQL (using PHP would not change the point of the question).
I need to set a variable on my home page:
SET block_encryption_mode = 'aes-256-cbc'
I cannot set it as a global variable, as other users use the server and can use the default block_encryption_mode .
I know that I can use an instruction using ASP / PHP at the beginning of every web page, but it is like using too many resources; each user will execute the SET statement on each page ...
Is there a way to set a variable or execute some other SQL statement at the beginning of each session, for example, like an onstart event, like ASP? Or how can I achieve my goal without fulfilling a request for each user on every page that I have?
source share