开发者

username is not available on the welcome page

开发者 https://www.devze.com 2023-02-14 13:39 出处:网络
identify the reason why the username is not being displayed on the welcome page using the following code?

identify the reason why the username is not being displayed on the welcome page using the following code?

String custId = (String) session.getAttribute("customerId");
String emailId = (String) session.getAttribute("emailId");
String phoneNumber = (String) session.getAttribute("phoneNumber");
<body>
<p>&nbsp;</p>
<p>&a开发者_运维技巧mp;nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="70%" align="center" border="1">
<tr>
<td align="center">Welcome to Going Green !</td>
</tr>


  • First of all you have to ensure that some other process put the attribute with key "customerId", "emailId", "phoneNumber" into the session.
  • Your HTTP session is not time out
  • Nobody clear the HTTP session
  • The browser you are accessing with must enable cookie, otherwise no session will be remembered
0

精彩评论

暂无评论...
验证码 换一张
取 消