Doubts on restricting users

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
jagadeeshamk
Forum Newbie
Posts: 4
Joined: Mon Nov 30, 2009 1:15 pm

Doubts on restricting users

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Doubts on restricting users

Post 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.
(#10850)
Post Reply