Home > ASP.NET > Enabling and disabling Session

Enabling and disabling Session

To Optimize the performance once can enable or disable the session in

1) Page Level
2) Application Level

At Page level set the EnableSessionState =”False” in page directive, it will disable the
session activity.

To access the session but not allow to writing data set EnableSessionState =”ReadOnly”

To disable the session in application level, configer the web.config as below

<Pages enableSessionState=”false”>

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: