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
精彩评论