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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0session var controlsession var control
Previous
 
Next
New Post
5/3/2006 11:30 AM
 

i am new to DNN and found it's very handy(round applause to the team!). however, one thing always puzzle me is its session control. e.g. in my previous .NET application dev experiences, when one restart IIS, all the sessions variables and user login info would be erased, but it doesn't look like the case for DNN(keeping cache somewhere?).  also another issue is, when someone logout and login, some of my custom modules' session variables are still kept (i thought all session variables would be destroyed automatically, including those initiated from custom modules?)

perhaps someone could tell what's the mechanism DNN uses in session/cache control?

thank you very much

 
New Post
5/3/2006 1:18 PM
 

We don't use session variables in DNN, as they're tied to the individual machine (i.e in server ram), so they would make it difficult for us to support webfarms. Details such as your userID and various permissions are stored in a forms authentication cookie after you login. This cookie is then encrypted to stop people reading it's contents, and to protect against tampering.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/3/2006 2:20 PM
 

thanks for the quick reply!

so if i understand correctly, when someone clicks 'logout', basically it's only removing/expiring this form authentication cookies but all session variables set in any customized modules remain and must be explicitly remove?

so when iis reset, these cookies would still remain. what's the best way you would suggest me to do if i want to ensure these are deleted when IISReset.

now it also triggers a question in mind: supposingly i have two users using the same machine and open two different browsers on the same machine, login to a DNN application separately. i found out that both users would behave separately (e.g. browser A on the computer as a regular user see regular user screens; browser B login as admin on the same computer and see admin screen). in some situations this is handy but in our applications, this is not very well. what would be the best solution to forbidden such sceanrio to happen(e.g. in Yahoo Mail, i think if cases like that and 2nd user login again on the same machine, it would automatically take over and presume all screens to be based on 2nd user's login criteria).

thank you in advance.

 
New Post
5/3/2006 3:35 PM
 

yes, clicking logout expires the forms authentication cookie and a few other cookies we use to control portal access.

By default, the cookies aren't persitent, so leaving the site, closing the browser or a period of inactivity causes them to be deleted automatically. If you check the 'remember me' checkbox it creates a persistent cookie that lasts for longer (see my blog entry for the period - it depends on the asp.net version).

We don't support the notion of only 1 current login per user at present.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0session var controlsession var control


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