Files
medpred/MedPred/jumper.aspx.cs
T
2014-09-22 17:29:48 +02:00

32 lines
947 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MedPred
{
public partial class jumper : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// cerco un insieme di parametri in URL (get)...
string UserAuthkey = "";
string USER_NAME = "";
try
{
UserAuthkey = Request["UserAuthkey"];
USER_NAME = Request["USER_NAME"];
}
catch
{ }
// ... li inserisco in sessione ...
Session["UserAuthkey"] = UserAuthkey;
// scambio in sessione utente x email (tanto coincidono)
Session["email"] = USER_NAME;
// ...infine rimando a pagina di admin accesso utente...
Response.Redirect("UserAdmin");
}
}
}