Session Variables

0
0

I must be misunderstanding the usage of session variables. What I’m trying to do is store user data in session variables such as:

Application.Session.CurrentAccountId = 123;
Application.Session.CurrentAccountName = “Sample User”;

etc…

But, as soon as the second user signs in, it overwrites the session data. So it seems that session variables are shared by everyone and are not unique for each user.

How would I go about storing the current user’s unique data (user id, name, etc)?

Thanks in advance.

  • You must to post comments
0
0

Thank you for your answer. I created a small sample and it worked as I expected it to work. This makes me think I’ve done something wrong in my main project’s code. I have a static SessionManager object that I’ve created, and I think that may be leading to the problem. I will do further research now. Thanks again.

  • You must to post comments
0
0

Hi Lloyd

Please, could you send us a small runnable sample that reproduce the issue?

by the way, Session are isolated, there is no way to cross data in Application.Session

Regards.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.