How do you add a "link id" (cant use normal links)

Found out that I only need to get the session but im not sure how to do that…

this.Home.onPress = function() {
getURL( “index.php?osCsid=”+ sessionID );

doesnt work it just says /index.php?osCsid=undefined
Do I have to change some other file too?