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.0How to Retain LastLoginHow to Retain LastLogin
Previous
 
Next
New Post
2/13/2008 8:33 AM
 

In my module development, I would like to know the LastLogin date of the user.

That way I can display new content since the users last login.

However, the LastLogin always gets updated durring authentication so I never know when the actual LastLogin date was.

Is there some way to get or retain this? 
I know DNN doesn't like session variables, but this is valuable information for a module developer.

Any thoughts?

 
New Post
2/13/2008 12:08 PM
 

You would have to implement something custom to get this done, potentially a new authentication provider to track the data...


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/13/2008 4:14 PM
 

I was thinking about just adding the last  login to a session variable before DNN changes the value. 
However, I generally don't like to modify the DNN core since I update DNN regularly and I would have to add the code back every upgrade.

Is it worth suggesting that this be added to the Core?

For just one example, in the forms, it would be nice to view posts since last login, like PHPBB and vBulletin let you do.
But we don't have access to the last Login date by the time our Module's execute.

 

 
New Post
2/14/2008 9:52 AM
 

Your other option is to just track it in your module.

Create a table that stores the last login date when they visit the module.  The first time would be the initial login, then if they navigate back you would have a new time..

I would agree that modifying the core is not a good idea, and also using session variables have its own set of issues.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/21/2008 8:11 PM
 

Mitch, thats a pretty good idea, you got my wheels turning thanks...

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to Retain LastLoginHow to Retain LastLogin


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