Welcome to Love and Craft. This month we have special clearance offer for 100+ knit fabrics
test

<%@ page import = "java.io.*,java.util.*" %> <% // Get session creation time. Date createTime = new Date(session.getCreationTime()); // Get last access time of this Webpage. Date lastAccessTime = new Date(session.getLastAccessedTime()); String title = "Welcome Back to my website"; Integer visitCount = new Integer(0); String visitCountKey = new String("visitCount"); String userIDKey = new String("userID"); String userID = new String("ABCD"); // Check if this is new comer on your Webpage. if (session.isNew() ){ title = "Welcome to my website"; session.setAttribute(userIDKey, userID); session.setAttribute(visitCountKey, visitCount); } visitCount = (Integer)session.getAttribute(visitCountKey); visitCount = visitCount + 1; userID = (String)session.getAttribute(userIDKey); session.setAttribute(visitCountKey, visitCount); %> Session Tracking

Session Tracking

Session info Value
id <% out.print( session.getId()); %>
Creation Time <% out.print(createTime); %>
Time of Last Access <% out.print(lastAccessTime); %>
User ID <% out.print(userID); %>
Number of visits <% out.print(visitCount); %>