method

create_new_id

ruby latest stable - Class: CGI::Session
create_new_id()
private

Create a new session id.

The session id is a secure random number by SecureRandom if possible, otherwise an SHA512 hash based upon the time, a random number, and a constant string. This routine is used internally for automatically generated session ids.