Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Restricting Access on a Page I Create?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahineman
Starting Member

USA
19 Posts

Posted - January 19 2011 :  10:57:09  Show Profile  Reply with Quote
I'm adding a few pages of my own creating with dynamic data. I'm using ShopPageHeader to integrate the look and feel of my site with my new pages. However, I want to limit access of some of these new pages to 'Registered Customers' only. (Or possibly certain customer groups.) How can I do this? What code snippet(s) do I need to include on my own custom page to check the user's login status?

support
Administrator

4679 Posts

Posted - January 19 2011 :  22:47:52  Show Profile  Visit support's Homepage  Reply with Quote
Hello,

It is pretty simple, after the code ShopPageHeader in your custom file, please insert :

if GetSess("customerid") = "" then
ResponseRedirect "shopcustadminlogin.asp"
end if

Thank you.
Wilson
VPASP ADMIN
Go to Top of Page

ahineman
Starting Member

USA
19 Posts

Posted - January 20 2011 :  13:10:53  Show Profile  Reply with Quote
Great thanks!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00