I noticed that the computer management console\shared folder was showing some users with "duplicate" sessions from the same workstation.

After further investigation I found that it was caused because

Session A: they are access files on that server from their home directory map
Session B: they are access files on the server with drives mapped in a script using the "use" command?

How do I correct this? It is causing my license manager to have fits (each user two licenses)