uce/site/doc/pages/session_destroy.txt
2026-06-17 13:02:57 +00:00

20 lines
457 B
Plaintext

:sig
void session_destroy(String session_name = "uce-session")
:params
session_name : the name of the session
:see
>session
:content
Deletes the cookie specified by `session_name` and clears the data stored under the current session ID.
This also empties `context.session_id` and `context.session`.
:example
String id = session_start("uce-doc-example-destroy");
session_destroy("uce-doc-example-destroy");
print(id != "" ? "destroyed\n" : "empty\n");