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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Event on Module when Logout from DNN SiteEvent on Module when Logout from DNN Site
Previous
 
Next
New Post
2/21/2013 3:48 AM
 
You cannot have a logout event because there is no logout.

When the browser's authorization cookie expires the user is no longer logged in. Most users will not bother to click any logout link. They get borded and go off to surf google. After a period the authorization cookie expires and they are out. Nothing happens at the server.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/21/2013 4:05 AM
 
Hi Richard

Yes, you are right and am aware of this fact but here issue is something else..i want to delete a cookie (set through a module) when user logged out from site manually by clicking the Logout button.
and i want that to be done on module level not by modifying code in logout page.

Thanks,
Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
 
New Post
2/21/2013 6:19 AM
 
IMO you can't do that.

I'd be happy to be proved wrong.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/22/2013 8:52 AM
 
Hi Richard

I think i got an idea to delete those cookies on click of "Logout".

Like create a module say logout add it to all pages(from module setting we can do that).
In this module we have to hide the module container programitically as we are not making this visible to any user. Next step is to check any user is logged in or not and if not then we can delete those cookies.
So user when clicks the logout button the logout module gets loaded which is present in the redirected page and deletes the cookies.
Looks like i made u 50% wrong ;)

Thanks,
Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
 
New Post
2/22/2013 9:28 AM
 
I'm sure you could do that, it sounds like it should work.

IMO I would prefer that other pages don't have to do somthing to support my module. If the cookie is specific to a module then Michael's idea sounds simpler, and keeps everything contained to one module.

Actually - if the app is making a call to the server, and they have to be logged in, then why not abandon the cookie and put the data in the database? That way when they login from a different machine they get whatever is stored in the DB. With a cookie they don't.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Event on Module when Logout from DNN SiteEvent on Module when Logout from DNN Site


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