escpos-php
escpos-php copied to clipboard
System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated.
Hi @mike42 thank you for your work on esc/pos i have been using it for over 2 years now and sometimes i get this error/exception : System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. running on windows with epson tm-t20ii shared over local network i hope you can help me
ok i think i fixed the error for anynone getting the same error you need to update WindowsPrintConnector.php to add the hostname in the function finalizeWin in this code : $user = "/user:" . ($this -> workgroup != null ? ($this -> workgroup . "\") : "") . $this -> userName; like this : $user = "/user:" . ($this -> workgroup != null ? ($this -> workgroup . "\") : $this -> hostname . "\") . $this -> userName; or you can add a workgroup (i think it will have the same effect) here is stackoverflow about the same error : https://stackoverflow.com/questions/39326387/error-1312-from-net-use-when-mapping-samba-share