Class SessionController
The Session Controller is a controller that verifies user credentials in order to retrieve and update data on the Ayuda Platform.
Namespace: Ayuda.BMS.Splash.Areas.Pi.Controllers
Remarks
This web service can be accessed using an address similar to the following: https://[AYUDA DEPLOYMENT URL]/Juice/Pi/Session
Methods
Login(String, String)
Verifies user credentials during login and begins a session.
Declaration
public ActionResult Login(string username, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | username | Username of the user. |
| System.String | password | Password of the user. |
Returns
| Type | Description |
|---|---|
| System.Web.Mvc.ActionResult | The session ID if successful, an error message otherwise. |
LogOut()
Logs the user out and ends the session.
Declaration
public ActionResult LogOut()
Returns
| Type | Description |
|---|---|
| System.Web.Mvc.ActionResult |
|
OnActionExecuting(ActionExecutingContext)
Declaration
protected override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Mvc.ActionExecutingContext | filterContext |
Overrides
System.Web.Mvc.Controller.OnActionExecuting(System.Web.Mvc.ActionExecutingContext)