اثر وجود سشن بر پردازش موازی در ASP.NET
نویسنده: وحید نصیری
تاریخ: ۱۳۹۱/۰۴/۰۳ ۱۰:۱۳
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
<httpModules> <remove name="Session"/> </httpModules>
<sessionState mode="Off" />
[SessionState(SessionStateBehavior.Disabled)]
public class AjaxTestController : Controller
{
//...
} [SessionState(SessionStateBehavior.ReadOnly)]
pagesSection.EnableSessionState = PagesEnableSessionState.ReadOnly
<% @Page EnableSessionState="ReadOnly" %>
FormsAuthentication.SetAuthCookie(user.Id.ToString(CultureInfo.InvariantCulture), loginInfo.RememberMe); FormsAuthentication.RedirectFromLoginPage(user.Id.ToString(), loginInfo.RememberMe);
سلام؛ اگر بخواهیم از سشن استفاده نکنیم، برای نگهداری اطلاعات کسی که لاگین کرده چه راهی وجود داره؟ مثلاً UserId یا LoginId که با اون بشه به UserId رسید.
<system.webServer>
<modules>
<remove name="Session"/>
</modules>
</system.webServer>