Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...II'm not clear what to use, session variables, cookies, chaching!??
Previous
 
Next
New Post
3/15/2010 4:22 PM
 

Hi,

I want to store some variables contents and reset them when user logout or the user authentication expire. I read somewhere that the session variables are not used in dotnetnuke. Is it true? and which the better way to keep in memory these variables?

Thanks!

 
New Post
3/15/2010 6:40 PM
 
your information is correct, session variables are not used in DNN, because they are not supported by ASP.Net in web farm scenarios. You may store information in a cookie or use personalisation (see http://www.adefwebserver.com/DotNetNukeHELP/Personalization).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/15/2010 6:59 PM
 
Sebastian Leupold wrote:
...session variables are not used in DNN, because they are not supported by ASP.Net in web farm scenarios...
 

Hi Sebastian,

Can you expand on that statement a little?  I think ASP.Net has brilliant support for out of process session state...

http://support.microsoft.com/kb/307598

...that leads me to think we must be talkingabout different ideas.  That is why I ask you to expand on why it does not work in DNN.

 


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/15/2010 7:12 PM
 

Session variables work in DotNetNuke, we just choose not to use them as they don't work by default in webfarms. Whilst you can use out of state stores for them this requires that to be setup which is not a common possibility for most sites (e.g. those hosted on shared hosting). In addition, as the out of state store is a database it add's an overhead to each request. There are many other possibilities to store temporary information as Sebastian suggested, which IMO are a better idea.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/16/2010 6:49 AM
 

Under Host Menu I can find  Host Settings > Advanced Settings > Users Online Time, is this session timeout? If yes then session is used by DNN! If no how Users Online Time work?

thanks!

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...II'm not clear what to use, session variables, cookies, chaching!??


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out