File size: 266 Bytes
4ba35bc
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from streamlit.scriptrunner import get_script_run_ctx as get_report_ctx


def get_session() -> str:
    """
    Function that returns a unique identifier per user session
    """

    session_id = get_report_ctx().session_id.replace('-', '_')

    return session_id