25 lines
809 B
C#
25 lines
809 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using SteamWare;
|
|
|
|
namespace MoonProTablet
|
|
{
|
|
public partial class Logout : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
// elimina il device da db...
|
|
string cookieName = memLayer.ML.confReadString("cookieName");
|
|
string devSecret = memLayer.ML.getCookieVal(cookieName);
|
|
authProxy.removeDeviceByDevSec(devSecret);
|
|
// elimina il cookie dal browser e l'utente loggato
|
|
memLayer.ML.emptyCookieVal(cookieName);
|
|
// rimanda alla pagina di reg device
|
|
Response.Redirect(memLayer.ML.confReadString("mainPage"));
|
|
}
|
|
}
|
|
} |