summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cb48c24)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1813
7612ce4b-ef26-0410-bec9-
ea0150e637f0
*/
function sqimap_session_id() {
*/
function sqimap_session_id() {
+ global $data_dir, $username;
+
$IMAPSessionID = substr(session_id(), -4);
if( $IMAPSessionID == '' ) {
$IMAPSessionID = substr(session_id(), -4);
if( $IMAPSessionID == '' ) {
- $IMAPSessionID = GenerateRandomString(4, '', 7);
+ $IMAPSessionID = str_pad( dechex( getPref( $data_dir, $username, 'counter', 0 ) ),
+ 4, '0', STR_PAD_LEFT);
}
return( $IMAPSessionID );
}
return( $IMAPSessionID );
if (isset($prefs_cache[$string]))
return $prefs_cache[$string];
else
if (isset($prefs_cache[$string]))
return $prefs_cache[$string];
else
session_register ('username');
setcookie('key', $key, 0, $base_uri);
do_hook ('login_verified');
session_register ('username');
setcookie('key', $key, 0, $base_uri);
do_hook ('login_verified');
+ setPref( $data_dir, $username, 'counter',
+ getPref( $data_dir, $username, 'counter', 0 ) + 1 );
}
/* Set the login variables. */
}
/* Set the login variables. */