public class GuidSessionIDManager:SessionIDManager { public GuidSessionIDManager() { // // TODO: Add constructor logic here // } public override string CreateSessionID(HttpContext context) { return Guid.NewGuid().ToString(); // Here you can create your own max 80 character unique GUID ID. } public override bool Validate(string id) { try { Guid testGuid = new Guid(id); if (id == testGuid.ToString()) return true; } catch { } return false; } }
<sessionstate sessionidmanagertype="GuidSessionIDManager">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)