lots of thanks thanks to dear Ayoma and Chinni...all of my login-logout problems are solved guys. your posts really solved my problems...this is exactly what i was looking for years.
now my login-logout mechanism is just like "Orkut".
you people are really genius. thanks a lot again.