Permalink
Browse files

Revert to using ini_set() to disable trans_sid because ouput_reset_re…

…write_vars() doesn't seam to be enough.
  • Loading branch information...
1 parent bb7e75d commit 3b183e2730b42bc32423e76c47266b5ad47afbf2 @olvlvl committed Apr 24, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 wdsession.php
View
@@ -102,12 +102,15 @@ protected function __construct(array $options=array())
session_cache_limiter($options['cache_limiter']);
}
- if($options['module_name'] != session_module_name())
+ if ($options['module_name'] != session_module_name())
{
session_module_name($options['module_name']);
}
- if($options['use_trans_sid'])
+ $use_trans_sid = $options['use_trans_sid'];
+ ini_set('session.use_trans_sid', $use_trans_sid);
+
+ if ($use_trans_sid)
{
output_add_rewrite_var(session_name(), session_id());
}

0 comments on commit 3b183e2

Please sign in to comment.