Greenbone Security Assistant
|
GSAD user session handling. More...
Go to the source code of this file.
Functions | |
void | session_add_user (const gchar *id, user_t *user) |
Add user to the session "database". More... | |
void | session_remove_user (const gchar *id) |
Remove a user from the session "database". More... | |
user_t * | session_get_user_by_id (const gchar *id) |
user_t * | session_get_user_by_username (const gchar *username) |
void | session_remove_other_sessions (const gchar *id, user_t *user) |
Removes all session of the user, except the one with the passed id. More... | |
void | session_init () |
GSAD user session handling.
void session_add_user | ( | const gchar * | id, |
user_t * | user | ||
) |
Add user to the session "database".
[in] | id | Unique identifier. |
[in] | user | User. |
user_t* session_get_user_by_id | ( | const gchar * | id | ) |
Find a user by a session identifier
user_t* session_get_user_by_username | ( | const gchar * | username | ) |
Find the first user with the username
void session_init | ( | ) |
void session_remove_other_sessions | ( | const gchar * | id, |
user_t * | user | ||
) |
Removes all session of the user, except the one with the passed id.
[in] | id | ID of the session to keep |
[in] | user | The user to logout. |
void session_remove_user | ( | const gchar * | id | ) |
Remove a user from the session "database".
[in] | id | Unique identifier. |