Hello! Where or how can I limit the Max Current Session in Perspective per user. For example in my Project I have an user called: "Admin" and I want to have only 1 session open.
Review the suggestions in this thread
Limit Perspective Sessions/Pages - Ignition - Inductive Automation Forum
1 Like
Thanks for what I understood is in the SessionEvent but I dont understand very well where I need to put the script and how the script should be written, I´m not good at programation
You'll start in Perspective -> Session Events -> Startup
from the project browser in the designer. This is untested, but it could look like this
sessionInfo = system.perspective.getSessionInfo(projectFilter="Admin Project")
for sessionObj in sessionInfo:
if sessionObj["username"] == "Admin":
system.perspective.closeSession("Only one session is allowed")
system.perspective.getSessionInfo - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)
system.perspective.closeSession - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)
1 Like
Thanks! Worked perfectly
1 Like