Session variables are lost when using eBay SDK

I was working with the eBay SDK for a client of mine and every time I posted a new product to eBay via their SDK the session was lost and I was redirected to the login page of the CMS.

When I was looking around the code and the folder structure of the application, I noticed that the SVN icon of the file "listing_log.txt" in the "bin" folder turned red so something change it. Since I was reusing some of the eBay example code I noticed this part where the log file is written. Every time some file in the "bin" folder is changed .NET rebuilds the application so this is why the session variables where lost.

       new FileLogger("listing_log.txt", true, true, true));
apiContext.ApiLogManager.EnableLogging = true;
So after changing the location of the log file with ../ everything worked fine. In the end I even turned that logging off with "EnableLogging = false" because that file will grow bigger and bigger with every new posting.

       new FileLogger("../listing_log.txt", true, true, true));
apiContext.ApiLogManager.EnableLogging = false;

Comments (13) -

  • Azhar abaya collection

    8/8/2016 10:51:25 PM |

    This design is incredible! You most certainly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Great job. I really loved what you had to say, and more than that, how you presented it. Too cool!

  • Unicorn-Finger-Tattoos

    8/9/2016 2:50:54 AM |

    Hello! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche. Your blog provided us beneficial information to work on. You have done a extraordinary job!

  • melania trump runway

    8/12/2016 12:11:56 PM |

    Thanks for ones marvelous posting! I definitely enjoyed reading it, you happen to be a great author.I will be sure to bookmark your blog and will eventually come back someday. I want to encourage you to ultimately continue your great job, have a nice evening!

  • traditional skull tattoo

    8/13/2016 12:23:21 PM |

    I am genuinely grateful to the holder of this site who has shared this wonderful piece of writing at here.

  • elan pakistani clothes

    9/19/2016 4:44:33 PM |

    Excellent post. I used to be checking continuously this blog and I am inspired! Very useful information specifically the last section Smile I maintain such info much. I was seeking this particular info for a very long time. Thank you and best of luck.

  • hairstyle ideas program

    9/20/2016 10:09:45 PM |

    Hi there friends, nice post and pleasant arguments commented at this place, I am genuinely enjoying by these.

  • Good day I am so glad I found your webpage, I really found you by accident, while I was browsing on Google for something else, Anyhow I am here now and would just like to say many thanks for a tremendous post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have saved it and also added in your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic jo.

  • Bed Bug Mattress Cover

    3/8/2017 3:45:37 PM |

    I needed to thank you for this great read!! I definitely loved every little bit of it. I've got you book-marked to check out new stuff you post…

  • Bed bug mattress protector

    3/20/2017 6:52:10 AM |

    Hi there very nice web site!! Man .. Beautiful .. Amazing .. I'll bookmark your site and take the feeds also? I am satisfied to search out so many helpful information here within the submit, we'd like work out more strategies on this regard, thank you for sharing. . . . . .

  • What i do not understood is in fact how you are not really a lot more neatly-preferred than you may be right now. You're very intelligent. You understand therefore considerably in terms of this topic, produced me personally imagine it from numerous numerous angles. Its like women and men don't seem to be involved except it's one thing to accomplish with Woman gaga! Your personal stuffs outstanding. At all times take care of it up!

  • l7H3AVo

    6/12/2017 9:05:01 PM |

    986845 130165Superb weblog here! Also your web site loads up quickly! What host are you making use of? Can I get your affiliate link to your host? I wish my web site loaded up as swiftly as yours lol 927511

  • what is split app

    6/13/2017 5:33:48 PM |

    49625 277322As I internet web site possessor I believe the content material matter here is rattling magnificent , appreciate it for your hard function. You ought to maintain it up forever! Finest of luck. 51275

  • puffco plus mouthpiece

    6/27/2017 2:37:46 AM |

    628073 418816In case you are interested in picture a alter in distinct llife, starting up normally the Los angeles Surgical procedures fat reduction method is actually a large movement as a way to accomplishing which normally notion. shed belly fat 354395

  • 123movies

    6/28/2017 2:54:54 AM |

    702915 959950This put up is totaly unrelated to what I used to be searching google for, nevertheless it was indexed on the very first page. I guess your doing something correct if Google likes you adequate to location you at the very first page of a non related search. 141323

  • mold removal

    7/13/2017 5:38:57 PM |

    633001 119972Its like you read my mind! You appear to know so a lot about this, like you wrote the book in it or something. I believe that you can do with some pics to drive the message home a bit, but instead of that, this is fantastic blog. A great read. I�ll definitely be back. 217734

  • waterproofing

    7/13/2017 10:03:17 PM |

    184615 388440Hi, if you want to get higher rankings, you should check out the plugin I left in my link, it will help. 936252

  • cpns kemenkumham

    7/24/2017 5:13:46 PM |

    254142 465338Hey, you used to write amazing, but the last couple of posts have been kinda boring�K I miss your super writings. Past several posts are just slightly bit out of track! come on! 478602

  • www.sscn

    8/2/2017 5:21:20 AM |

    172758 522954Hello. Excellent job. I did not expect this. This is a superb articles. Thanks! 762685

  • Shemale.UK

    8/7/2017 11:55:20 AM |

    207849 781521An really intriguing examine, I might not agree completely, but you do make some quite legitimate factors. 879583

  • Christ Gospel Church Cult

    8/7/2017 7:02:06 PM |

    913060 739688Following study some of the blog articles for your site now, and that i genuinely like your method of blogging. I bookmarked it to my bookmark website list and are checking back soon. Pls consider my internet website too and inform me what you consider. 407163


    8/11/2017 10:50:51 PM |

    172010 254863I like this  site  extremely a lot so a lot  excellent   details. 386614

  • roofing

    8/30/2017 2:28:59 PM |

    147019 904333I like this  internet internet site quite significantly, Its a  genuinely  nice  post  to read and get  info  . 744919

  • Related Site

    9/11/2017 4:34:52 PM |

    878491 830895Enjoyed reading  this, quite great stuff,  thankyou . 651127

  • car crash compilation 2017 russia

    9/19/2017 11:46:04 AM |

    194624 774213Most beneficial gentleman speeches and toasts are produced to enliven supply accolade up to the wedding couple. Newbie audio system the attention of loud crowds need to always take into consideration typically the great norm off presentation, which is their private. best man speaches 613379

  • Bdsm chat

    9/23/2017 9:57:59 PM |

    365139 606867This style is incredible! You undoubtedly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost�HaHa!) Great job. I truly loved what you had to say, and a lot more than that, how you presented it. Too cool! 35117

  • online loans instant approval

    9/25/2017 6:59:09 AM |

    223225 887129Thank you a great deal for giving every person an extraordinarily special possiblity to check guidelines from here. 368942

  • best seo company in chandigarh

    9/27/2017 8:15:57 AM |

    646159 4058I�m not that much of a internet reader to be honest but your blogs actually nice, maintain it up! I�ll go ahead and bookmark your website to come back down the road. Cheers 681316


    9/28/2017 8:14:09 AM |

    71088 36546This is a good common sense write-up. Extremely beneficial to 1 who is just finding the resouces about this part. It will certainly aid educate me. 501064

  • Festivales

    9/28/2017 4:27:38 PM |

    386404 941536Good write-up. It does shed some light on the issue. By the for those interested in binary options can get an exclusive binary options bonus. 299983

  • Play Game at

    9/28/2017 4:27:49 PM |

    482967 269775Created to measure curtains� [...]check out the sites listed below, worth a read for interiors and rugs enthusiasts[...]� 627344

  • mondo sonoro

    9/28/2017 4:28:34 PM |

    278712 953634Hoping to go into business venture world-wide-web Indicates revealing your products or services furthermore companies not only to ladies locally, but nevertheless , to several prospective clients in which are online in most cases. e-wallet 436590


    10/3/2017 5:32:33 PM |

    65446 531560Thank you for the auspicious writeup. It in truth used to be a amusement account it. Glance complex to more added agreeable from you! Nevertheless, how could we be in contact? 489488

  • hamster

    10/9/2017 2:43:58 PM |

    29339 994420There is noticeably a bundle to recognize about this. I assume you made specific good points in functions also. 177733

  • engineer

    10/24/2017 6:37:04 PM |

    849083 219751If I ought to say something, then nothing will stop the chatter within 549238

  • tent camping equipment

    10/26/2017 10:36:01 PM |

    510058 30311Some  truly   great  content  on this  internet internet site ,  appreciate it for contribution. 739956

  • Aws Alkhazraji

    11/2/2017 6:08:57 PM |

    992195 262589Often the Are usually Weight reduction program is unquestionably an low-priced and flexible weight-reduction program product modeled on individuals seeking out shed some pounds combined with at some point maintain a far healthier your life. la weight loss 6426

  • Colarts Diyala

    11/2/2017 6:40:20 PM |

    183304 638538Hello! I would wish to supply a large thumbs up for your outstanding info you can have here about this post. I�ll be coming back to your blog website for further soon. 179147

  • engineering

    11/8/2017 10:29:13 PM |

    708890 598068I like this  web blog  really significantly so significantly  superb  info  . 97008

  • 709711 617877I came across this excellent from you out of sheer luck and never feel lucky enough to say also credit you for any job nicely done. 108153

  • image source

    11/16/2017 11:53:35 AM |

    355966 765939very good put up, i definitely enjoy this internet website, maintain on it 572003

  • CRO for DMPK

    11/21/2017 6:49:31 AM |

    791281 622094Yay google is my king    aided me to uncover this  outstanding  internet site! . 689876

  • Cheap last minute holidays

    11/21/2017 12:00:27 PM |

    322691 811089hello I was extremely impressed with the setup you used with this weblog. I use blogs my self so congrats. definatly adding to favorites. 761197

  • Cash Advance Chicago

    3/31/2018 5:14:30 AM |

    Payday credit terms are generally straightforward. Regularly, banks have concealed expenses that show up out of the blue. This doesn't occur for this situation. These organizations charge a little expense in light of the measure of cash you're getting from them.