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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Session variables disappearing across tabsSession variables disappearing across tabs
Previous
 
Next
New Post
9/14/2012 3:50 PM
 

I'm working on a custom module and am using session variables to save information within the module. As long as I stay on the same tab the session variables are working just fine. But if I do something as simple as bringing up a blank content page and then going back to the tab with my module on it, the session variables disappear. I was using session variables because some of the info I have to save are arrays. Is there a better way to do this? I've checked the code to verify that there isn't something in the logic that is causing me to clear the arrays in the code. But that isn't the case.

Any ideas or solutions appreciated.

 

 
New Post
9/14/2012 6:11 PM
 
session will stop, as soon as you are leaving the domain context, i.e. using a site address w/o portalId or moduleid

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/14/2012 8:46 PM
 
so cookies work better if you want to save that information for the module if a user leaves the tab with the module on it?  with an expires clause in the future so you don't lose the cookies either? any easy solution for the array issue that you've come across or do I just have to go thru the process of using join and split on the arrays?
 
New Post
9/15/2012 5:51 AM
 
if you need to move to a different page, make sure to append portalID parameter to prevent session to be terminated.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/15/2012 5:55 AM
 
there are several options to store data - session variables are not used by DNN because they are not supporting web farm scenarios. You may store data in a local cookie, in a temp file on the server or in the database. Do you need to open a blank page instead of navigating to a different module control?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Session variables disappearing across tabsSession variables disappearing across tabs


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