Does anyone know if it is possible to convert a System.Net.Cookie to a System.Web.HttpCookie ? What is the difference exactly?
What I'm trying to do is simulate a pseudo-autologin feature on my site into another website. So for example, my code does an HttpRequest to a remote server that returns the Authentication cookie. I then want to send that cookie to the client so they can make regular requests to the remote server as an authenticated user, without having to go through my application again.
So far, I have been able to get the authentication cookie just fine, but I can't figure out a way to send it to client. I was hoping i could just add it to the current HttpResponse and send it to the client that way, but it uses HttpCookies, not .Net.Cookies, which is what the HttpWebResponse object returns from my "behind-the-scenes" post. Is this even possible?
Any help would be appreciated!
Thanks,
Peter
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】博客园2025新款「AI繁忙」系列T恤上架,前往周边小店选购
【推荐】凌霞软件回馈社区,携手博客园推出1Panel与Halo联合会员
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步