Posted By:
gurpreet_ahluwalia
Posted On:
Tuesday, March 12, 2002 12:52 AM
I am making this java mail project. so when a user logs-in a session is created through HttpSession with the following.. String uid=new java.rmi.server.UID().toString(); String uid1=java.net.URLEncoder.encode(uid); session.setAttribute("username",uid1);. This creates the session.. Will this create a unique Session. sir please explain in real time websites.using java mail.. how do we create session and how to keep track of it until the user log out.. what i have done is that..i have checked the session like this.. if (session.getAtt
More>>
I am making this java mail project.
so when a user logs-in a session is created through HttpSession with the following..
String uid=new java.rmi.server.UID().toString();
String uid1=java.net.URLEncoder.encode(uid);
session.setAttribute("username",uid1);.
This creates the session..
Will this create a unique Session.
sir please explain in real time websites.using java mail..
how do we create session and how to keep track of it until the user log out..
what i have done is that..i have
checked the session like this..
if (session.getAttribute("username")==null)
{
out.println("please login");
}
else
{
read message///
}
Is this the valid method...
please explain in a small sample code..
<<Less