sec_allocate_session (private)

 sec_allocate_session

Defined in packages/acs-tcl/tcl/security-procs.tcl

Returns a new session id

Partial Call Graph (max 5 caller/called nodes):
%3 sec_setup_session sec_setup_session (private) sec_allocate_session sec_allocate_session sec_setup_session->sec_allocate_session db_nextval db_nextval (public) sec_allocate_session->db_nextval db_release_unused_handles db_release_unused_handles (public) sec_allocate_session->db_release_unused_handles

Testcases:
No testcase defined.
Source code:

    if { ![info exists ::acs::sec_id_max_value] || ![info exists ::acs::sec_id_current_sequence_id]
         || $::acs::sec_id_current_sequence_id > $::acs::sec_id_max_value } {
        # Thread just spawned or we exceeded preallocated count.
        set ::acs::sec_id_current_sequence_id [db_nextval sec_id_seq]
        db_release_unused_handles
        set ::acs::sec_id_max_value [expr {$::acs::sec_id_current_sequence_id + 100}]
    }

    set session_id $::acs::sec_id_current_sequence_id
    incr ::acs::sec_id_current_sequence_id

    return $session_id
Generic XQL file:
packages/acs-tcl/tcl/security-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/security-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/security-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: