I read the question regarding this but couldnt get any clarity on this.
I have a website where there is one page which displays lessons for users. For these lessons I am going to make forums. Now this is the one page I want to password protect. And I going to use the same username-password table as for forum.
- I have already setup cookies for site.
Now I want to know what code is to be inserted into this page, displaylessons.asp, so that if user is not logged in it asks for login.
I would also suggest a look at the inc_header.asp page, lines# 164-208, which is where user login is done. If a user is logged in the [b]mlev[b] variable value is >= 1.