I couldn't find information on the algorithm used by jBoss 7 to generation session IDs and I need to know what characters are possible. I noticed that sometimes the session ID has characters like: + * . etc... This seems different than jBoss 5 which was only alphanumeric.
Can you help me determine what characters are allowed for a jBoss 7 generated session ID?
Thanks
Session ID generation is handled by org.apache.catalina.session.ManagerBase . The general format is as follows:
<encodedSessionId>.<jvmRoute>
ID encoding is based on:
SESSION_ID_ALPHABET = System.getProperty("org.apache.catalina.session.ManagerBase.SESSION_ID_ALPHABET", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_")
The jvmRoute
part is usually environment dependent (it may be used for handling session affinity in a cluster).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.