简体   繁体   中英

how to generate session id on Java EE by myself

I want to generate session id on Java EE by my self. Such as I want to generate session id 128 bit, 256 bit,

How to generate it?

Session ID is generated by application server. So, it depends in it. To do this you have to change your application server (I mean create some patch to it).

I believe you can do this but you have to discover each application server separately. So, you will not be able to deploy your application on sever without your patch. It means that this technique does not seem as optimal.

And the biggest question here is "why"? I believe you should better explain your cause problem. I believe that guys here can suggest you a better solution.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM