VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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

4266 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