I was trying out the examples from w3schools. I was wondering if is possible to extract the lastvisit data separately from username.

function checkCookie()
{

var username=getCookie("username");
if (username!=null && username!="")
    {
   alert(unescape(document.cookie.split(";")));
  }

Are you sure you are asking about Java or you are asking for JavaScript?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.