| 123456789101112131415161718192021222324252627282930313233 |
- using BizCom;
- using System;
- using System.Web;
- namespace SiteCore.Handler
- {
- public partial class sync
- {
- public void file_downback()
- {
- if (UrlPostParmsCheck("st"))
- {
- int st = GetPostInt("st");
- string msg = GetPostString("msg");
- if (st == 1)
- {
- HttpCookie cookie = new HttpCookie("erp_db_cookie");
- //cookie.Values.Clear();
- cookie.Values.Add("fileDownload", "true");
- cookie.Path = "/";
- //cookie.Domain = "47.114.150.226";
- cookie.Expires = DateTime.Now.AddDays(7);
- HttpContext.Current.Response.Cookies.Add(cookie);
- con.Response.AddHeader("Set-Cookie", "fileDownload=true; path=/");
- XLog.SaveLog(0, "有处理cookie");
- }
- con.Response.Write("1");
- }
- }
- }
- }
|