NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: broche on March 02, 2014, 05:19:03 PM
-
Hi, how do I put the Username that was used in the Login form and put it in the main header?
Or anywhere the user who is logged in can see it.
Brian.
-
Store it in a session variable and you can use it anywhere: p_web.SetSessionVariable('username',UserName).
In a header use 'Logged-in user: ' & p_web.GetSessionVariable('username') or create a routine and use <!-- Net:s:username --> on the xHtml tab.
Peter
Correction: it should read Set/GetSessionValue - not variable. Or shorthand ssv/gsv.
Peter