Problem with Sessions.

0
0

Hello everyone! I am having a very annoying problem with my WiseJ website. When a user enters I automatically get my variables equal to his .. His session is interfering with mine. I don’t know how to explain it, but when I log in, I’m saving my variables in a class, and then when another user enters a different account I keep his variables. Can someone help me get a method to separate the sessions? Thank you very much!

  • You must to post comments
0
0

Hi Ruben,

static variables are shared across all users/sessions.
To store session specific information please use the Session class:

https://docs.wisej.com/docs/controls/general/application#session-object

Best regards
Frank

    • Guest
    • Apr 29, 2021 - 3:25 pm
    Yeah, that doesn’t really help. Look i have put this: Application.Session.Application.Session.myninterno = “0” and it gives me this error: Object variable or With block variable not set What can i do to solve this issue?
  • Frank (ITG)
    Why did you duplicate Application.Session? Simply use Application.Session.myninterno = “0” Regards, Frank
  • Luca (ITG)
    Add Option Strict Off, the session object is a dynamic object and requires late binding. If you use statics they are statics across the app domain (in .NET) and across the process in any other system. It is not a Wisej issue.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.