Can I put an ASP.Net session ID in a hidden form field?

后端 未结 4 1045
礼貌的吻别
礼貌的吻别 2020-12-05 20:55

I\'m using the Yahoo Uploader, part of the Yahoo UI Library, on my ASP.Net website to allow users to upload files. For those unfamiliar, the uploader works by using a Flash

4条回答
  •  -上瘾入骨i
    2020-12-05 21:10

    You can get your current SessionID from the following code:

    string sessionId = HttpContext.Current.Session.SessionID;
    

    Then you can feed that into a hidden field maybe and then access that value through YUI.

    It's just a get, so you hopefully won't have any scaling problems. Security-problems though, that I don't know.

提交回复
热议问题