Re: Session Authentication etc...
| From: | Jason Wong | Date: | Tue, 30 Apr 2002 14:31:53 +0000 |
| Subject: | Re: Session Authentication etc... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95381@lists.php.net to get a copy of this message | ||
On Tuesday 30 April 2002 22:57, Troy Lynch wrote:
> I'm currently rewriting a website in PHP and something I'm looking to do is
> login and logouts but also have a page to view who is logged at the present
> time.
Assuming that you do not require a user to logout, there is no reliable
method to determine whether a user is (still) logged in. The best you can do
is know (1) When they logged in & (2) When their last request was.
> I've kinda made some login code which basically checks the database
> and then sets a cookie which I think I will change cause it looks like I
> wonna do session variables. Anways anyone either know of a decent
> authentication lib that I can use to check the users online and do
> authentication or can someone point me in the right direction in doing
> this?
There's something called php_lib_login that you can google for.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The Army needs leaders the way a foot needs a big toe.
-- Bill Murray
*/