diff --git a/phpsec/phpsec.session.php b/phpsec/phpsec.session.php
index <HASH>..<HASH> 100644
--- a/phpsec/phpsec.session.php
+++ b/phpsec/phpsec.session.php
@@ -74,7 +74,7 @@ class phpsecSession {
       self::$_currID = null;
     }
     if(self::$_sessIdRegen === true || self::$_currID === null) {
-    	self::$_newID = phpsecRand::str(128);
+    	self::$_newID = phpsecRand::str(128, 'abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-_.!*#=%');
     } else {
     	self::$_newID = self::$_currID;
     }
Adds more characters to the session ID charset.