Is it by any means possible to read the browser session id using javascript?
you can probably ping the server via ajax inside javascript. The php file might look something like:
This will return you the current session id. Was this what you were looking for.