Page 1 of 1

Doubts on restricting users

Posted: Mon Nov 30, 2009 1:26 pm
by jagadeeshamk
Hi..

I have a page with some information and one link called "moreinfo".(If user click the "moreinfo " link he will get more information ) .

What i need here is ,any one can access the page and only registered users should access the "moreinfo " link.

How to do this pls any one help me with code..

Thanks

Re: Doubts on restricting users

Posted: Mon Nov 30, 2009 2:21 pm
by Christopher
Typically you would authenticate them with a login page. Once authenticated, you would set a cookie or value in the session. Then that restricted page can check the cookie/session to control access.