We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Polls v1.0.6 sessions problem in IIS

Development and Programming

JCDerrick's avatar
JCDerrick
56 posts
16 years ago
JCDerrick's avatar JCDerrick

It took us about four months, but we finally figured out why EE was creating endless sessions on our IIS box here at work (and we’re talking millions of sessions). We had to bring in two consultants and a php expert, but we all completely ignored the add-ons until last week.

There’s something odd that happens with the ext.lg_polls_controller.php file and IIS; we suspect it’s this line of code below. When this file is activated on the server, the sessions add up very quickly (one for every page hit, it doesn’t use the same session for a single user across the site, it creates a session for every ‘hit’ on the server for that same user).

<pre><code> function __construct($settings=”) { global $SESS; $this->settings = $settings;

    if (session_id() == "") session_start(); // if no active session we start a new one

    if(isset($_SESSION['lg_polls']['log']) === FALSE)
    {
        $_SESSION['lg_polls']['log'] = array();
    }
    if(isset($SESS->cache['lg']) === FALSE)
    {
        $SESS->cache['lg'] = array();
    }
}[/code]

I know IIS isn’t the ideal way to run EE. I use a Linux box to run my EE installations and haven’t had any issues. Just curious if this is a bug in IIS or if the code above is the issue. We’d love to be able to use the Polls Module, but the session problem about took our server CPU to the graveyard.

Our server specs (if it helps): PHP Version 5.2.6 Windows NT XXXXXXX 5.2 build 3790 mySQL 5.0.51a

       
JCDerrick's avatar
JCDerrick
56 posts
16 years ago
JCDerrick's avatar JCDerrick

Bump. Anyone have a suggestion how we might can fix this in IIS? I’ve had some folks request we run another poll, but I definitely can’t turn this back on until we fix the problem.

Since removing the line of code above, we’ve had zero server issues.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.