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.

apiContext.ApiLogManager.ApiLoggerList.Add(
       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.

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

Comments (12) -

  • 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 bkn.go.id

    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

  • http://www.ib889.com

    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

Loading