JSP Response. Getlastaccessedtime() method: get the last access time of the session
•
Java
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
二维码