PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Windows environment: error Networkuser() function not allowed in Linux ?
Windows environment: error Networkuser() function not allowed in Linux ?
Started by Stef, Mar., 08 2013 11:06 AM - 2 replies
Registered member
45 messages
Posted on March, 08 2013 - 11:06 AM
Hi,

Another issue when migrating a project from WinDev 17 to WebDev 17. The debugger refuses the function NetworkUser() stating that it is not allowed in Linux ???
I am working in a 100 % Windows environment though.

Anyone knows how to fix this ?

Stefan
Registered member
45 messages
Posted on March, 08 2013 - 11:10 AM
I forgot to add that I checked in the help pages where it is indicated that this function should work in WebDev server processes. My code is in a serverprocess though.
Registered member
17 messages
Popularité : +1 (1 vote)
Posted on March, 08 2013 - 1:31 PM
Hi Stef,

Many things need a completely different approach in a web based application.
Remember that in Webdev there are two "environments" one in the browser and one on the server. So NetworkUser unlike in Windev will only return the current user on the server. Which is the name of the system user that runs the webserver service.
On a Linux server this command probably does not work. Knowing the name of the system user is of no use to you anyway.
You will never be able to find out the network user on the local machine.

Instead of the nerkwork user you need to switch to a login name to identify your users. Or use the users IP, but this will be the same for users that connect from a local network.

Regards,
Piet