JSP Response. Getlastaccessedtime() method: get the last access time of the session

getLastAccessedTime()

Example

<%
  long timeNum = session.getLastAccessedTime();
  Date date = new Date(timeNum);
  out.println("这个session的最后访问时间是:"+date);
%>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>