Is it possible to set PHP session variables using Javascript?
Not possible. Because JavaScript is client-side and session is server-side. To do anything related to a PHP session, you have to go to the server.