sec_update_user_session_info (private)

 sec_update_user_session_info user_id

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

Update the session info in the users table. Should be called when the user login either via permanent cookies at session creation time or when they login by entering their password.

Parameters:
user_id (required)

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

Testcases:
No testcase defined.
Source code:
    db_dml update_last_visit {}
    db_release_unused_handles
Generic XQL file:
<fullquery name="sec_update_user_session_info.update_last_visit">
    <querytext>

        update users
        set second_to_last_visit = last_visit,
            last_visit = current_timestamp,
            n_sessions = n_sessions + 1
        where user_id = :user_id

      </querytext>
</fullquery>
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: