I have a simple java desktop application that is downloaded from my website to the user's PC once a user has registered on my site. This desktop application uploads certain files from a user's computer. My issue is that I need to identify the user that is uploading files to my server. The website is written in PHP using the Yii framework. I need the site and java application to be modified so that the site can pass the known username to the java application prior to files being uploaded to my server.
I can make my server available via TeamViewer or RDP. Source code for the java application also will be made available.