How to create Login id based on session..?

I want to create login session in the following manner…

1.as soon as user login ,session id as to be created,and by chance user closes the tab and tries reopen the tab that session must be destroyed and he must be redirected to the login page.

2.User tries to reopen the any tab without logging then it must redirect to login page and not anyother page.

3.Finally after users logout his session must be destroyed and if clicks back button it should not load previous pages…

I don’t have any idea …so if any one can share their thoughts or any sample code , I can refer it and continue my coding…It would be very much helpfull for me …

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.