Click to See Complete Forum and Search --> : login problem in php


802.11
03-19-2003, 05:57 PM
it takes some time before I can login into menu from a login screen
a html call the login-xxx.php

in the login-xxx.php has the following stmt.
setcookie("loginpass",$pass);



I have written a login screen, they are a. for customer b. for administrator.


they identical program. but I realized the admin login screen take about 5 mins to go to admin menu. while the customer screen is ok after typing login name and password. Idid not understand why.

it is because of the setcookie. Ihave tried to disable the set cookie in the admin -login.php.

- ligin name wa correct and so for password.
help me , please!

megadave
03-20-2003, 03:51 AM
I'm not 100% sure that I understand your problem.

As you're stating it, u have a login page for a user, and another login page for the administrator, both identical in code except that the administrator page takes 5 minutes to log in and the user page is instant?

Just a question. Why have two seperate login pages? I mean, admin can sign in thru the normal login screen, no?