开发者

Mvc2 areas and session

开发者 https://www.devze.com 2023-01-16 20:58 出处:网络
Do Areas in Mvc2 have session isolation or do they share the same session as the rest of the application for the sa开发者_开发技巧me user.They are part of the same ASP.NET application and therefore th

Do Areas in Mvc2 have session isolation or do they share the same session as the rest of the application for the sa开发者_开发技巧me user.


They are part of the same ASP.NET application and therefore they share the same session.


Well I dont seem to find that true as my request for the same session set in different area of mvc comes as null, where as in that area it works fine

But they do, just like @Charlino said, it uses ASP.NET's session. Maybe you don't have just areas, but have actually separate virtual directories/applications.

Are you using Session[], or TempData[]. I don't think it makes a difference, but TempData is a MVC mechanism so might have an extra hook in there.

0

精彩评论

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