ULC session scope variables, use of browser cookies?

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
ahti
Posts:6
Joined: Tue Jan 07, 2014 9:12 am

ULC session scope variables, use of browser cookies?

Post by ahti »

Hello,

I have clients connecting over ULC and there is need for some client session variables. For example specific views are selected on specific clients.

I'm seeking for best approach. I cannot use global variables nor DPE-s because every client has it's own values. Also preferrably these variables would be retentive when client reconnects, server restarts or alike. Ugly way would be storing these values on shapes on top level modules. Is threre any way to use browser cookies from ULC? How would you do it?

Best Regards,
Ahti

ahti
Posts:6
Joined: Tue Jan 07, 2014 9:12 am

Re: ULC session scope variables, use of browser cookies?

Post by ahti »

Just figured out that I can use two dyn_string DPE-s that act like key-value storage. I just use hostname as key name prefix and that's it. This is working fine.

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: ULC session scope variables, use of browser cookies?

Post by gschijndel »

Why do you not use a mapping for key-value storage?

ahti
Posts:6
Joined: Tue Jan 07, 2014 9:12 am

Re: ULC session scope variables, use of browser cookies?

Post by ahti »

Thanks! I was not aware of this. This is just my second project with WinCC OA, although I have 20+ years of experience with SCADA. It takes time to find the best practices...

4 posts • Page 1 of 1