mirror of
https://github.com/jakobadam/RDSFactor.git
synced 2025-08-23 15:50:49 +02:00
Updated RDWeb pages with the two-factor support
This commit is contained in:
parent
80da1889a3
commit
59d9b4b135
24 changed files with 735 additions and 229 deletions
24
RDSFactorWeb/RDWeb/Pages/en-US/cook.aspx.cs
Normal file
24
RDSFactorWeb/RDWeb/Pages/en-US/cook.aspx.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class Pages_en_US_cook : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
HttpCookie myCookie = new HttpCookie("RadiusSessionId");
|
||||
DateTime now = DateTime.Now;
|
||||
|
||||
// Set the cookie value.
|
||||
myCookie.Value = now.ToString();
|
||||
// Set the cookie expiration date.
|
||||
myCookie.Expires = now.AddMinutes(480);
|
||||
|
||||
// Add the cookie.
|
||||
Response.Cookies.Add(myCookie);
|
||||
|
||||
Response.Write("<p> The cookie has been written.");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue