A far better solution is to create that first SecureRandom in the servlet'
s init method so the 5 second overhead bites only when the server is
starting up. Do NOT hack SecureRandom in server.xml; security problems
there.
On Thursday, June 14, 2001, at 06:20 AM, Mamadou Bobo Sylla wrote:
> I have browsed the server.xml, but I couldn't which the line that I should
> chnage there.
> So do have to create an instance of java.util.Random inside my program make
> it as session id?
> ----- Original Message -----
> From: "Endre St�lsvik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 14, 2001 5:36 PM
> Subject: Re: Session slow
>
>
>> On Thu, 14 Jun 2001, Mamadou Bobo Sylla wrote:
>>
>> | I am using session on my login page , but it is too slow!!!
>> | The user has to wait for some time before the login is completed.
>>
>> Tomcat? It's using the SecureRandom class, which uses 532458 seconds to
>> make it's _first_ random number. You'll find that the next generation of
>> a
>> HttpSession is much faster.
>>
>> If you're bogged down on the development side, you can change the random
>> class to the normal java.util.Random via the server.xml file (or whatever
>> it's called). This'll speed up the _first_ session, but it's much worse
>> security wise, and you should always change it back to SecureRandom when
>> going to production.
>>
>>
>> --
>> Mvh,
>> Endre
>>
>>
> ___________________________________________________________________________
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
---
For industrial age goods there were checks and credit cards.
For everything else there it http://virtualschool.edu/mybank
Brad Cox [EMAIL PROTECTED] 703 361 4751
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html