That means the user logs into the normal profound session and has always the possibilty to use the anonymous program on the right side of the application.
do you think it is possible to get the username from userSpan ID and work with it in the anonymous program ? Or do you see another possiblity to get the user profile which logged into the profound session?
see attached picture of the login screen to make it more clear...
Some Genie skins will use this (or, the related, pui["appJob"]["user"]) to create an element named userSpan that shows the user who is signed in, but these userSpans will usually have something extra in them like "Welcome THEUSER" or "Hello THEUSER"... so it's easier to just call currentUser(), that way you don't have to substring off the "Welcome" or "Hello" (or whatever message someone may dream up in the future.)
I should clarify that currentUser() will do something different depending on where it's called. If you call it from within the main page (the Genie page) it'll give you the userid of that session. If you call it from the iFrame, it won't give you a real userid, because that session is anonymous.
One solution, from the iframe, you could just call parent.currentUser(), you'll get the userid of the parent window (the Genie window). But -- please don't use this for anything that needs to be secure, because it would be very easy to spoof the userid in this case.
Maybe it's best to take a step back, here... Why do you want the userid in the iframe? What will you use it for?
cool! parent. is working fine.
I want that the user has during the whole session the possibilty to change defaults from his profile of our application. Like default printer/client/environment...
does something like child. exist?
next step would be child.pui.click() ?
so that the "user-session" refresh the anonymous session.
parent.pui.click() is working...