<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : Login - Stay on Page</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Login - Stay on Page]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 03:29:37 +0000</pubDate>
  <lastBuildDate>Tue, 21 Jun 2011 23:55:42 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=4527</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[Login - Stay on Page :   Finally had a chance to re-engage...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17823.html#17823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 21-June-2011 at 11:55pm<br /><br /><div>Finally had a chance to re-engage this.&nbsp;</div><div>This seems to work.</div><div><br></div><div>Add this to the login link.</div><div><font ="Apple-style-span" color="#0000ff">onclick="return false;" id="LG"</font></div><div>so it would look like:</div><div><font ="Apple-style-span" color="#0000ff">&lt;a href="Checkout.asp?cmode=1" onclick="return false;" id="LG"&gt;Log In&lt;/a&gt;</font></div><div><br></div><div>This needs to be added to the inc_footer.asp file before the&nbsp;'// Restore Cart line.</div><div><br></div><div><div><div><font ="Apple-style-span" color="#0000ff">&lt;%</font></div><div><font ="Apple-style-span" color="#0000ff">if session("idCustomer")="0" or session("idCustomer")="" then</font></div><div><font ="Apple-style-span" color="#0000ff">%&gt;</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>&lt;div id="LGMsgDialog" title="Login" style="display:none"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">		</span>&lt;div id="LGMsg" style="width: 80%;"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">			</span>&lt;div class="ui-main"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form name="login" method="post" action="checkout.asp?cmode=1"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table width="100%"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tbody style="text-align:left;"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type="text" size="35" name="LoginEmail"&gt;&lt;/td&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Password &lt;/td&gt;&lt;td&gt;&lt;input type="password" name="LoginPassword"&gt;&lt;/td&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input name="PassWordExists" type="hidden" value="YES" &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="hidden" name="SubmitCO.y" value="1"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="hidden" name="redirectUrl" value="" id="location"/&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;script type="text/javascript"&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById('location').value=(location.href);</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/script&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; <span ="Apple-tab-span" style="white-space:pre">	</span>&lt;/div&gt;</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">		</span>&lt;/div&gt;</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>&lt;/div&gt;&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">&lt;script type="text/javascript"&gt; &nbsp; &nbsp; <span ="Apple-tab-span" style="white-space:pre">		</span> &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff"><br></font></div><div><font ="Apple-style-span" color="#0000ff">$(document).ready(function()</font></div><div><font ="Apple-style-span" color="#0000ff">{</font></div><div><font ="Apple-style-span" color="#0000ff">$("#LGMsgDialog").dialog({</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp;bgiframe: true,</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp;autoOpen: false,</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp;resizable: false,</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp;width: 400,</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp;modal: true,</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp;buttons: {</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>' Close ': function() {$(this).dialog('close');},</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>' Open New Account ': function() {location='&lt;%=tempFooterURL%&gt;checkout.asp?cmode=1'; $(this).dialog('close');<span ="Apple-tab-span" style="white-space:pre">	</span>},</font></div><div><font ="Apple-style-span" color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>' Submit ': function() {document.login.submit(); $(this).dialog('close');}</font></div><div><font ="Apple-style-span" color="#0000ff">}</font></div><div><font ="Apple-style-span" color="#0000ff">});</font></div><div><font ="Apple-style-span" color="#0000ff"><br></font></div><div><font ="Apple-style-span" color="#0000ff">$('#LG').click(function(){</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; $("#LGMsgDialog").dialog('open');</font></div><div><font ="Apple-style-span" color="#0000ff">&nbsp; return ;</font></div><div><font ="Apple-style-span" color="#0000ff">});&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">}); &nbsp; &nbsp;&nbsp;</font></div><div><font ="Apple-style-span" color="#0000ff">&lt;/script&gt;</font></div><div><font ="Apple-style-span" color="#0000ff">&lt;%<span ="Apple-tab-span" style="white-space:pre">	</span>end if&nbsp;%&gt;</font></div></div></div><div><br></div><div>The "redirecturl" needs to be generated correctly and VB requests pull in long url with the 404 SEO errors. &nbsp;Javascript generates the 'location.href' after the page is rendered so the redirecturl is correct.</div>]]>
   </description>
   <pubDate>Tue, 21 Jun 2011 23:55:42 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17823.html#17823</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Looks like Session(&amp;#034;SFStrRedirectUrl&amp;#034;)=...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17719.html#17719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 07-June-2011 at 7:34pm<br /><br />Looks like <em>Session("SFStrRedirectUrl")= "whatever page redirecting to" </em> <br />seems to do it.<br /><br />Although AJAX would be smoother.<br /><br />Can I establish sessions with AJAX?<br /><br />I will post up the form after I finalize it.]]>
   </description>
   <pubDate>Tue, 07 Jun 2011 19:34:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17719.html#17719</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Josh - have a look at atc_instprd.asp...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17717.html#17717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=290">Greg Dinger</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 07-June-2011 at 6:41pm<br /><br />Josh - have a look at atc_instprd.asp - the module that redirects from instprd.asp back to some page for the "stay on page" feature.&nbsp; I authored the bulk of that code and had to achieve a similar goal.&nbsp;&nbsp; What it does is to make decisions based on the originating URL as to what sort of page the request came from.&nbsp; Then it eventually forms a URL to return to.<DIV>&nbsp;</DIV><DIV>Your case will differ.&nbsp; You still need to determine where you came from, and thereby know where to return to.&nbsp; But it's a little trickier since the current login already performs&nbsp;the custpref.asp&nbsp;redirect&nbsp;that you now need to overcome.&nbsp; If you have some time and need this done for you, we could take it on.&nbsp; But I have a suspicion that this is a large enough task that it's going to be tough to tackle here in the forum with a hint one way or another.</DIV>]]>
   </description>
   <pubDate>Tue, 07 Jun 2011 18:41:33 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17717.html#17717</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Ooops, I did misunderstand. I&amp;#039;m...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17715.html#17715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1237">macleather</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 07-June-2011 at 6:33pm<br /><br />Ooops, I did misunderstand. I'm afraid I can't help on that one.]]>
   </description>
   <pubDate>Tue, 07 Jun 2011 18:33:50 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17715.html#17715</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Humm, maybe I am missing something...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17712.html#17712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 07-June-2011 at 6:26pm<br /><br />Humm, maybe I am missing something or I haven't asked the question clearly.<br /><br />I want my <strong>login form</strong> to allow a customer to <strong>login</strong> and stay on the current page, instead of being redirected to custpref.asp.<br /><br /><br /><br />]]>
   </description>
   <pubDate>Tue, 07 Jun 2011 18:26:19 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17712.html#17712</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Josh,  Sorry, try this.  http:...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17699.html#17699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1237">macleather</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 07-June-2011 at 1:13am<br /><br />Josh,<br /><br />Sorry, try this.<br /><br /><a href="http://wiki.earlyimpact.com/productcart/settings-misc?s%5b%3E=stay&s%5b%3E=page" target="_blank">http://wiki.earlyimpact.com/productcart/settings-misc?s&#091;%22%3E=stay&s&#091;%22%3E=page</a>]]>
   </description>
   <pubDate>Tue, 07 Jun 2011 01:13:14 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17699.html#17699</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : the link doesn&amp;#039;t work. ]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17698.html#17698</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 06-June-2011 at 11:45pm<br /><br />the link doesn't work.]]>
   </description>
   <pubDate>Mon, 06 Jun 2011 23:45:38 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17698.html#17698</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Hi Josh,  Here&amp;#039;s the link...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17695.html#17695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1237">macleather</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 06-June-2011 at 7:08pm<br /><br />Hi Josh,<br /><br />Here's the link to the WIKI. Scroll down to "stay on page.."<br /><a href="%20" target="_blank">http://wiki.earlyimpact.com/productcart/settings-misc?s&#091;">=stay&s&#091;">=page</a><br /><br />Alan]]>
   </description>
   <pubDate>Mon, 06 Jun 2011 19:08:42 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17695.html#17695</guid>
  </item> 
  <item>
   <title><![CDATA[Login - Stay on Page : Using 4.1a.  I am trying to set...]]></title>
   <link>https://forum.productcart.com/login-stay-on-page_topic4527_post17690.html#17690</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4527<br /><strong>Posted:</strong> 06-June-2011 at 11:29am<br /><br />Using 4.1a.<br /><br />I am trying to set up a login with redirect back to the current page.<br />I don't want the customer to be directed away from what they are looking at.<br /><br />How can I login customers in and keep them on the current page?<br /><br />I noticed in the checkout.asp page code this exists:<br />But it doesn't always work.<br /><br />  dim pcRequestRedirect<br />  pcRequestRedirect=getUserInput(request("redirectUrl"),250)<br /><br />  if Session("SFStrRedirectUrl")&lt;&gt;"" AND pcRequestRedirect="" then<br />  else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session("SFStrRedirectUrl")=pcRequestRedirect<br />  end if  <br /><br /><br />Thanks for any ideas.<br /><br />Josh<br />801 906-8396]]>
   </description>
   <pubDate>Mon, 06 Jun 2011 11:29:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/login-stay-on-page_topic4527_post17690.html#17690</guid>
  </item> 
 </channel>
</rss>