Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3b183e2730b42bc32423e76c47266b5ad47afbf2 1 parent bb7e75d
@olvlvl authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 wdsession.php
View
7 wdsession.php
@@ -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());
}
Please sign in to comment.
Something went wrong with that request. Please try again.