posted 16 years ago
You cant do it, its browser dependent.
The browser returns the session variable on a new tab, so the user remains logged in.
Its also something I think you dont even want to try do because very often, I do it all the time, the user will right click and open in a new tab.
Trying to make a login system like a billing system is not easy.
It depends on what you trying to do but if you want to monitor pages, then something like a cookie counter or hidden fields will probably serve you better than messing around too much with the login.
Short of that you would have to write your own authentication system.