Results 1 to 4 of 4

Thread: Forcing Log In?

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Location
    Alberton, Gauteng, South-Africa
    Posts
    48

    Question

    Hi there!

    I was wondering if there's a way to force a person to log in .. I know I can have a field in my SQL DB that can check if the user logged in today but I was wondering if I can do it in some other way? maybe a Cookie or something ... ????

    Thanks in Advance ...
    ;-)
    Jaco
    South-Africa

  2. #2
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    Network Log

    Yeah... you can do it another way. Our company uses a server side script that you place before your HTML header. It propts you for your network login/pass. It is used only on our intranet... so I am not sure if that is something that you would be interested in or not.

    Talk to you later,
    Brandon

  3. #3
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi

    On my website which i'm working on....

    When the client registers i give him/her option to auto-login and how it works is:

    If auto-login option is true then drop a cookie on his/her pc

    when he/she next visits:
    first see if cookie exists
    if exists - login in

    if not exists show login dialogue


    DocZaf
    {;->

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2001
    Location
    Alberton, Gauteng, South-Africa
    Posts
    48
    Hey there

    I think I will got the Cookie Route .. see if my Logic seems logical ..

    When the user logs in he goes to a second page right .. well if he logs in i create/Update a cookie with the date/time he logged in, the next page checks to see if the cookie's date/time corresponds to the current system time .. with a 1min error margin. if not the user will be redirected back to the main login page.

    Cheers and thanks for your help!
    ;-)
    Jaco
    South-Africa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width