Skip to Content
0
Feb 10, 2019 at 06:29 AM

Not able to get results from $.session.getUsername()

261 Views

Hi All,

I get output as 'undefined' with the below code

Please help

var user = $.session.getUsername();
	 $.response.contentType = 'text/html';
 		$.response.setBody(user);
 		$.response.status = 404;