I have been struggling with following problem for quite some time, but I haven\'t found proper solution. The problem is, if we have application that has login/logout functio