oddie Posted February 4, 2003 Share Posted February 4, 2003 how can i restrict the access only to registered users to certain pages ? Link to comment Share on other sites More sharing options...
mattice Posted February 4, 2003 Share Posted February 4, 2003 You can't. You can limit access to people that have registered and are LOGGED IN though if that's what you mean: if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Will only show the page to logged in users. Others get re-directed to login.php Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
oddie Posted February 4, 2003 Author Share Posted February 4, 2003 thanks!!! Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2003 Share Posted February 19, 2003 You can't. You can limit access to people that have registered and are LOGGED IN though if that's what you mean: if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Mattice Mattice...where do you add that line of code? Can you apply it to individual categories, or will it apply to ALLpages? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.