Emmeph01
02-29-2008, 01:16 AM
I have a company website which is hosted by one company and a shopping cart which is hosted by a separate company. In order to purchase items, you must enter your user/password. I set up a .asp page (page A - on server #1) that contains a form for the login information. After they login, they are sent to their Account Info page (page B - on server #2). Right now, if you click the link for page A it will always take you to page A and you must login again, regardless of whether you are currently logged in or not. After much internet searching, it seems cookies on a .asp page was the path the go down (?) - but I am having crazy trouble with this thing! Bascially, I am trying to set it up if they are already logged in, it will redirect to page B (on the separate server) when they click on the link to page A. Ive tried using various codes I found over the internet, but to no avail - any help is greatly appreciated! Here is the form code from page A:
<form method="POST" action="https://www2.ibgcheckout.com/trinitas/servlet/login" name="loginform" onsubmit="">
<fieldset id="login" style="border:0;padding:0;margin:0;">
<div><strong>Please Login:</strong></div>
<table border="0" cellpadding="4" cellspacing="0">
<tr><td style="text-align:right;"><label for="username">Email:</label></td>
<td><input type="text" name="username" value="" size="32" /></td></tr>
<tr><td style="text-align:right;"><label for="password">Password*:</label></td>
<td><input type="password" name="password" value="" size="32"/></td></tr>
</table>
<div style="font-size:10px;">* Password is Case-Sensitive.</div>
<input type="hidden" name="act_name" value="LOGIN_CUSTOMER" />
<input type="hidden" name="on_success" value="https://www2.ibgcheckout.com/trinitas/account/account.jsp" />
<input type="hidden" name="on_error" value="http://www.trinitascellars.com/account_login.html" />
<input type="hidden" name="verify" value="https://www2.ibgcheckout.com/trinitas/verify/index.jsp" />
<input type="submit" class="button" name="loginf" value="LOGIN" />
</fieldset>
</form>
<form method="POST" action="https://www2.ibgcheckout.com/trinitas/servlet/login" name="loginform" onsubmit="">
<fieldset id="login" style="border:0;padding:0;margin:0;">
<div><strong>Please Login:</strong></div>
<table border="0" cellpadding="4" cellspacing="0">
<tr><td style="text-align:right;"><label for="username">Email:</label></td>
<td><input type="text" name="username" value="" size="32" /></td></tr>
<tr><td style="text-align:right;"><label for="password">Password*:</label></td>
<td><input type="password" name="password" value="" size="32"/></td></tr>
</table>
<div style="font-size:10px;">* Password is Case-Sensitive.</div>
<input type="hidden" name="act_name" value="LOGIN_CUSTOMER" />
<input type="hidden" name="on_success" value="https://www2.ibgcheckout.com/trinitas/account/account.jsp" />
<input type="hidden" name="on_error" value="http://www.trinitascellars.com/account_login.html" />
<input type="hidden" name="verify" value="https://www2.ibgcheckout.com/trinitas/verify/index.jsp" />
<input type="submit" class="button" name="loginf" value="LOGIN" />
</fieldset>
</form>