.NEt中我通过邮箱发送一天链接链接中有个随机产生的验证码用于找回密码用的

.NEt中我通过邮箱发送一天链接链接中有个随机产生的验证码用于找回密码用的,点击链接访问Action。访问之后解析数据并且匹配,我的生成的数据是放到session当中了。可是换个浏览器这个链接它就不能行了,怎么让我在电脑端生成的链接,手机通过邮件内容链接可以更改密码。现在的问题就是访问这个链接,链接中的随机数也可以和我生成的进行匹配

生成的数据不要放在session中,而是应该放在user表中。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;

namespace GameCard.DAL.ViewModel
{

public static class CheckCode
{

    private static Hashtable checkCodeTable = new Hashtable();

    public static Hashtable getByKey(string userName, string userEmail) 
    {
        return (Hashtable)checkCodeTable[userName+userEmail];
    }

    public static void addCodeAndKey(string userName,string userEmail,Hashtable checkCode) 
    {
        checkCodeTable.Remove(userName + userEmail);
        checkCodeTable.Add(userName + userEmail, checkCode);
    }
}

}