title: How do I lock a workstation from asp.net?
body: <p>I am trying to lock a windows workstation from an Asp.net website. </p>
  
  <p>This is the code I was using: <a href="https://stackoverflow.com/questions/1263047/lock-windows-workstation-programmatically-in-c-sharp">Lock Windows workstation programmatically in C#</a></p>
  
  <p>It works when debugging on my local machine, but not when running on the server. Any idea why it isn't working?</p>
  
  <p>I'm creating a program for school use as a kiosk application, and I want it to lock the computer when the website exits fullscreen or goes to another webpage to prevent students from accessing anything but the webpage. I know this isn't "foolproof" and there are ways around it - but I've successfully used it in normal C# desktop winforms in this setting. </p>
  
  <p>Thank you!</p>