Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude session tracking on specific web page

I have a page used for delivering RSS feeds, however it's triggering a session state (Session_Start) every time a users RSS client sync's with the feed, skewing visitor count tracking numbers. I'm hoping I can use some code to not trigger the session variable when this particular page is opened (albeit via RSS).

like image 863
stats101 Avatar asked Aug 28 '26 23:08

stats101


1 Answers

You can disable session state for a particular location using the following entry in web.config:

  <location path="MyRssFeedLocation">
    <system.web>
      <pages enableSessionState="false" />
    </system.web>
  </location>
like image 58
Lee Gunn Avatar answered Aug 31 '26 13:08

Lee Gunn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!