开发者

How do I get a session by SessionID in C#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜