<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042115" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042115</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Well, this is a script I</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/works-localhost-not-online#comment-1234621</link>
    <description> &lt;p&gt;Well, this is a script I adapted, a nice front-end for stardard PayPal payments.&lt;/p&gt;
&lt;p&gt;It has its own session vars and cookies, which do seem to go away at the end of the transaction. I tried adding my vars to its session arrays, that didn&#039;t work either.&lt;/p&gt;
&lt;p&gt;Since there is no database, and I need to preserve one discount while processing another coupon on a fresh page load, I think I have no option but session (hmmm - just had an idea, maybe I can set a cookie!)&lt;/p&gt;
&lt;p&gt;Anyway, despite my woes, it is a good app and I would attach it because it is very hard to find, the creator&#039;s web site has disappeared - but you don&#039;t permit zip attachments. So here is a &lt;a href=&quot;http://netsperience.org/sites/default/files/ew_xclick-cart-1_0_1.zip&quot;&gt;download link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default distro only has support for % off discounts, but I added $ off with qualifying amount, and buy one item get another free. If you need some help with those, PM me.&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Oct 2008 01:15:23 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1234621 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I too have wasted an</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/works-localhost-not-online#comment-1234617</link>
    <description> &lt;p&gt;I too have wasted an inordinate amount of time on $_SESSION recently. So don&#039;t worry, you&#039;re not alone. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I don&#039;t understand why this would work in some browsers and not others, that makes no sense. Unless they&#039;re not storing the session id correctly, but you&#039;re intimating that the problem is happening while processing a single page (?).&lt;/p&gt;
&lt;p&gt;Perhaps the best answer is to use &lt;code&gt;$_SESSION&lt;/code&gt; sparingly, keeping values in variables and only saving what you really need toward the end of the script.&lt;/p&gt;
 </description>
     <pubDate>Tue, 28 Oct 2008 23:20:38 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1234617 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I have been banging my head</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/works-localhost-not-online#comment-1234525</link>
    <description> &lt;p&gt;I have been banging my head on the keyboard for the past few days.&lt;/p&gt;
&lt;p&gt;I can&#039;t seem to get it right.&lt;/p&gt;
&lt;p&gt;Works on XAMPP/localhost also in Safari and Chrome.&lt;/p&gt;
&lt;p&gt;But in IE and Firefox, the $_SESSION variable gets set without applying the discount.&lt;/p&gt;
&lt;p&gt;If I unset the $_SESSION variables on each page load, then the discount will apply to one coupon at a time, but not both (of course). Client is cool with that, for now.&lt;/p&gt;
&lt;p&gt;It doesn&#039;t appear to be persistent sessions because the page will load without the $_SESSION variables set, then when the coupon is applied the $_SESSION variable is set without applying the coupon...&lt;/p&gt;
&lt;p&gt;Maybe I will set up a database as an alternative, but this &quot;&lt;strong&gt;should&lt;/strong&gt;&quot; work, and does in some environments but not others!&lt;/p&gt;
 </description>
     <pubDate>Sun, 26 Oct 2008 05:28:18 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1234525 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>yes, that is my</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/works-localhost-not-online#comment-1234416</link>
    <description> &lt;p&gt;yes, that is my conclusion&lt;/p&gt;
&lt;p&gt;actually, the longer session life prevents reuse of the coupons, which is desireable&lt;/p&gt;
&lt;p&gt;but makes testing more complex, I got proficient at clearing saved data (cookies etc) in Firefox and Opera...&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Oct 2008 01:06:13 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1234416 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The server probably keeps</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/works-localhost-not-online#comment-1234397</link>
    <description> &lt;p&gt;The server probably keeps the session active longer than your local setup.&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Oct 2008 17:21:14 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1234397 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The problem is the $_SESSION</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/works-localhost-not-online#comment-1234395</link>
    <description> &lt;p&gt;The problem is the $_SESSION variables&lt;/p&gt;
&lt;p&gt;For some reason, they don&#039;t get destroyed at the end of the session, so they stick around.&lt;/p&gt;
&lt;p&gt;Actually, this is desireable, to prevent multiple uses of the coupons by the same user/client.&lt;/p&gt;
&lt;p&gt;I can unset them, and the coupon works, but I can&#039;t figure out how to unset them only once, so the combo use doesn&#039;t work.&lt;/p&gt;
&lt;p&gt;But why would XAMPP let them go away and client&#039;s server wouldn&#039;t? &lt;/p&gt;
&lt;p&gt;(I do not know config of client&#039;s server, I am only working with ftp).&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Oct 2008 16:24:53 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1234395 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
