This project has moved and is read-only. For the latest updates, please go here.

DNN Session

Jun 28, 2011 at 3:27 PM

Hi,

I'm testing the multi instance with DNN and it works good. :) But I have a question about the session, where is it ? I saw that some parameters are stored in some cookies like language and when I'm logged : portalID...

I didn't see a session table or some related thing in the storage so I supposed you use cookies .... ? (It's a little bit weird)

Am I wrong ?

Thanks,

Florent.

Jun 29, 2011 at 10:51 AM
Edited Jun 29, 2011 at 10:54 AM

Hi Florent, 

As Cathal Connolly mentioned in this thread, DNN and its core modules do not use session state as part of the development standards for DotNetNuke.

If you have a module that needs to store Session State, the solutions are using a Session State Server or storing the session state on SQL Azure. Storing on SQL Azure would be a little worst on performance terms, but I recommend it for scalability reasons. 

If you are planning to develop a new module, the solution is to use the "Personalization" namespace (module Settings). Think that you could have different instances of the same module, and on the same page! You could do it with session variables, but you will need to find a good "key" for the session values. Personalization is built for this purpose and other additional tasks. 

Read the links below for more info:

http://www.dotnetnuke.com/Resources/Forums/forumid/-1/postid/279114/scope/posts.aspx

http://www.adefwebserver.com/DotNetNukeHELP/Personalization/

Jun 29, 2011 at 3:48 PM

Hmm okay.

Thanks again David. :)