set password

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mythilisg
    New Member
    • Jan 2008
    • 6

    set password

    hi,
    i'm using asp.net with c#.
    i am generating random password to the user.
    Then, i close all my application (website).
    i need the user to use that password with in 15 minutes(Windows login screen).
    if the user is not using that password with in 15 minutes, i want the password to get expired. Is thr any solution to solve this problem?
    if so plz help me............. ............... ............... ...........
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Can you set another field in the login database of dataType datetimewhich defines the expiry date (called Expiry_Date)
    When your password generator stores the password for that user set the Expiry_Date to DateTime.Now.Ad dMinutes(15);
    and store it along with the password.

    if the user changes the password, then ofcourse you should change this expiry time to much more which you should be able to do (you can add years or months or days)

    Comment

    • Mythilisg
      New Member
      • Jan 2008
      • 6

      #3
      hi,
      thanks for ur reply.
      we are facing one problem.we are working in asp.net with c#.
      we want to count how many times the same user is viewing our page within 15 minutes.
      can u plz help me............. ............... .

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        This article may help:
        AutoResetEvent & Timer

        Comment

        • Shashi Sadasivan
          Recognized Expert Top Contributor
          • Aug 2007
          • 1435

          #5
          Hello Mythilisg ,

          Please do not double Post Questions.
          This is agaist the rules of thescripts.com

          PLease read the FAQ especially about Do Not Double Post.

          -Moderator

          Comment

          Working...