當(dāng)我對某個動作或uplodify(http://www.uploadify.com/)使用的控制器使用“授權(quán)”過濾器時,該動作無法實現(xiàn)...此外,會話未檢索。我發(fā)現(xiàn)這是為了檢索用戶會話:http://geekswithblogs.net/apopovsky/archive/2009/05/06/working-around-flash-cookie-bug-in-asp.net-mvc.aspx但是如何將其與[Authorize]過濾器和檢索到的會話一起使用?
3 回答

繁華開滿天機(jī)
TA貢獻(xiàn)1816條經(jīng)驗 獲得超4個贊
對于VB轉(zhuǎn)換的代碼*以<%#而不是<%=開始代碼塊
即
var auth='<%# IIf(Request.Cookies(FormsAuthentication.FormsCookieName) Is Nothing, "",
Request.Cookies(FormsAuthentication.FormsCookieName).Value)%>';
var ASPSESSID = '<%# Session.SessionID%>';
- 3 回答
- 0 關(guān)注
- 491 瀏覽
添加回答
舉報
0/150
提交
取消