开发者

How do I get a session by SessionID in C#

开发者 https://www.devze.com 2023-01-29 02:23 出处:网络
I\'m working on an ASP.NET MVC app and I\'m trying to use the \'Uploadify\' JQuery plugin.One issue I\'m running into is that there is apparently a well known bug in regards to sending up cookie infor

I'm working on an ASP.NET MVC app and I'm trying to use the 'Uploadify' JQuery plugin. One issue I'm running into is that there is apparently a well known bug in regards to sending up cookie information with Flash (which uploadify utilizes). So I've tried sending the auth token and the session id with my request when uploading a file using uploadify. This is great in that I can figure out if someone is authorized, but I can't seem to get the session and thus do n开发者_如何学Cot have access to session variables. If I have the SessionID, is there a way to get the Session in C#?


Session["myVar"] = "1234";
<%= this.Session.SessionID %>

HttpContext.Session.SessionID

Note that you can get the session ID, but you need to store things in the temp data or it will keep giving you new IDs.

This post has the answer

0

精彩评论

暂无评论...
验证码 换一张
取 消