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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.