hi all, i'm new here

i want to ask, how to create session as web application in java desktop application? usually i use an ip address for session login logout, but it doesnt effective because an ip address from other computer can be same.

help me please, thx before