using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using BookShopOnline.Model;
using BookShopOnline.Utility;
/// <summary>
/// WebSession 的摘要说明
/// </summary>
public class WebSession
{
    public WebSession()
    {
        //
        // TODO: 在此处添加构造函数逻辑
        //
    }

    //public static string GetCartGuidInSession()
    //{
    //    if (HttpContext.Current.Session["CartGuid"] == null)
    //        return null;

    //    return HttpContext.Current.Session["CartGuid"].ToString();
    //}

    //public static void SetCartGuidInSession(string cartGuid)
    //{
    //    if (HttpContext.Current.Session["CartGuid"] != null)
    //        HttpContext.Current.Session.Remove("CartGuid");

    //    HttpContext.Current.Session.Add("CartGuid", cartGuid);
    //    HttpContext.Current.Session.Timeout = 5;
    //}

}
