i wonder how to make a authentication, login and logout in ASP .NET and some security features..
1. how to make this feature :
if the user has not login yet and the user types http://www.market.com/items.aspx
then user can not do it and he will be directed to login.aspx.........
for example, user has login successfully, then he can browse items.aspx.
but it could be that he does not log out, but simply close the browser (items.aspx)...
how to make it automatically logs out when user closes the browser (items.aspx)..
pls help if you know the samples and links.