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
 Customization
 Adding Static Content & Login Features
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CierraRod
Starting Member

USA
18 Posts

Posted - May 04 2006 :  11:34:34  Show Profile  Visit CierraRod's Homepage  Reply with Quote
Hey everyone,

I have added some static content pages for a website using VPASP. One thing I added was a message board for our users. What I want to do is have that area secure from the general public and only accessible if a user is logged into VPASP, otherwise I would like it to re-direct them to a page similar to the shopcustomer.asp.

Does anyone know how this might be accomplished?

CierraRod
Starting Member

USA
18 Posts

Posted - May 04 2006 :  16:24:14  Show Profile  Visit CierraRod's Homepage  Reply with Quote
Ok, I sort of found what I was looking for.


Sample Login Form

The HTML below allows a login from any of your own pages. The “returnurl” is designed to tell VP-ASP which page to go to after a successful login. If unsuccessful the default login page shopcustadminlogin.asp is displayed.

<FORM action=shoplogin.asp method=post>
<INPUT type=hidden value=shopdisplaycategories.asp name=returnurl>
<INPUT name=strlastname>
<INPUT name=stremail>
<INPUT type=submit value=Login>
</FORM>


I got this straight from the faq page, one problem is that on successful login it's suppose to re-direct to the returnurl page I set, but everytime I have a succesful login, it always takes me to the shopcustadmin.asp page. Does anyone have a clue as to why that is?
Go to Top of Page

ironhawker
VP-ASP Super User

USA
260 Posts

Posted - June 14 2006 :  00:58:17  Show Profile  Visit ironhawker's Homepage  Reply with Quote
shoplogin.asp
line 78plus.... note line 88 and 96
------
'*****************************************************************
' determine where to go to
'*****************************************************************
Sub SetupReturnurl (url)
if returnurl<>"" then
if Serror="" then
url=returnurl
exit sub
else
url="shopcustadminlogin.asp"
end if
exit sub
end if
If Getsess("Followonurl")="" and getsess("Currenturl")="" then
If Serror="" then
url=getconfig("xhome")
else
url="shopcustadminlogin.asp"
end if
--------------------
try changing above, as the login form on
/shopcustadminlogin.asp refers to: <form name=form1 method=Post action=shoplogin.asp>

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
Institute of Higher Learning

[email protected]
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000