TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/17Franco/CulturarteWeb/llms.txt
Use this file to discover all available pages before exploring further.
logout servlet provides a single, safe way for users to end their CulturarteWeb session. It
calls session.invalidate() on the existing HttpSession (if one is present), then redirects the
browser to the application root. Because the session is destroyed, any subsequent request to a
protected resource will treat the user as unauthenticated.
GET /logout
Terminates the current session and redirects the user.| Step | Detail |
|---|---|
| 1. Retrieve session | request.getSession(false) — does not create a new session if none exists. |
| 2. Invalidate | If a session is found, session.invalidate() is called, removing all stored attributes (including logueado and tipoUser). |
| 3. Redirect | 302 Found → {contextPath}/ (the BuscadorPropuestas welcome servlet, which will in turn redirect unauthenticated users to the login page). |
Parameters
None. The endpoint does not read any query string or body parameters.Example
Browser link
Place this in any JSP or HTML template to give authenticated users a logout button:curl
302 redirect to /CulturarteWeb/. Because the session cookie is now
invalid, any further request made with that same cookies.txt jar will be treated as
unauthenticated.