PDA

Click to See Complete Forum and Search --> : Forcing Log In?


Randhart
Feb 19th, 2001, 01:43 PM
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 ...

Brandito
Feb 19th, 2001, 02:28 PM
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

Zaf Khan
Feb 19th, 2001, 10:36 PM
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
{;->

Randhart
Feb 20th, 2001, 12:11 AM
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!