hema3i
asked on
Access session in Application_AuthenticateRequest
i want to access session object in Application_AuthenticateRe quest when i tries to it returns null
. how to do ?
or other wise is there any global place for the wole application to access the session object every time the user goes to a new page
. how to do ?
or other wise is there any global place for the wole application to access the session object every time the user goes to a new page
YES in web.config saved in root directory of application
<configuration>
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcp ip=127.0.0 .1:42424" />
</system.web>
</configuration>
OR
<configuration>
<system.web>
<sessionState
mode="SQLServer"
sqlConnectionString="Serve r=127.0.0. 1;UID=sa;P WD=secret" />
</system.web>
</configuration>
<configuration>
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcp
</system.web>
</configuration>
OR
<configuration>
<system.web>
<sessionState
mode="SQLServer"
sqlConnectionString="Serve
</system.web>
</configuration>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
I believe my answer is technically accurate - of course I don't know if it helped or not...!
IMO the answer from skvikram describes how to set up your session state in different ways, but not how to access it.
The last (and to a lesser extent, the first) link provided by pradeepsudharsan describe a similar problem, so could have been useful also.
Alec
I believe my answer is technically accurate - of course I don't know if it helped or not...!
IMO the answer from skvikram describes how to set up your session state in different ways, but not how to access it.
The last (and to a lesser extent, the first) link provided by pradeepsudharsan describe a similar problem, so could have been useful also.
Alec
http://www.c-sharpcorner.com/UploadFile/rohit_kshirsagar/FormsAuthenticationActiveDirectory11262005074248AM/FormsAuthenticationActiveDirectory.aspx?ArticleID=b74c35c8-e757-4c2c-b4f3-376d05e98347
http://www.velocityreviews.com/forums/t100889-applicationauthenticaterequest-cannot-read-session-variable.html