ASP.Net session state not available on another webpage

前端 未结 1 1590
青春惊慌失措
青春惊慌失措 2021-01-23 08:18

I\'m designing a single page web application with all the action happening on default.aspx. I store the user\'s user id in Session after he logs on. I use SWFUpload in default.

相关标签:
1条回答
  • 2021-01-23 08:46

    This is a known issue with Flash and cookies on non-IE browsers. Here's a post over at swfupload.org that discusses a workaround, and 'just the code' over at snipplr. Basically Flash does not send your cookies (or sends IE cookies) on Firefox and Chrome, etc., so your SessionID is not sent with your upload.aspx request in those browsers. In IE it will work, though.

    The workaround above is to send the SessionID and Authentication ticket in the post or url, and then in the Global.asax intercept the request and recreate the correct cookies before ASP.NET looks for them in order to retrieve authentication or session information.

    0 讨论(0)
提交回复
热议问题