This topic is locked

Remember member and no time out

4/30/2012 1:35:42 PM
ASPRunnerPro General questions
J
JohnLug author

Is it possible for when someone logs into a protected ASPRunnerPro section, that the person can select to be "remembered" and not have to put in his username and password again.
So they stayed logged all the time?

J
JohnLug author 5/3/2012

Anyone have any ideas on this?
My problem is I have lots of people dealing with pain issues and they take a long time on pages at times. Then if the session times out, they lose all their data. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=65892&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

Sergey Kornilov admin 5/3/2012

Here is the basic idea of how you can make it work.

  1. In AfterSuccessfulLogin event save username and password to cookies.
  2. In BeforeLogin event you can check if username/password cookies exist, retrieve them and run a query against database verifying credentials. If username/password are correct you can populate security related session variables like Session("UserID") and redirect user to one of pages.
    More info on session variables:

    http://xlinesoft.com/asprunnerpro/docs/asprunner_session_variables.htm