Use sessions in PHP (super simple, just call session_start() at the top
of every page i.e. like in an include file) and use
$_SESSION['loginname']

I would strongly recommend using mod_auth_mysql for your authentication.
It's easy and probably more secure than anything you can write ;-) Plus
it lets users bookmark pages without you having to handle that sort of
thing.

> -----Original Message-----
> From: sgannon60 [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 13, 2003 5:08 PM
> To: [EMAIL PROTECTED]
> Subject: PHP, MYSQL and persistant authentication
> 
> 
> Hi,
> Does anyone know of a good tutorial on setting up a login 
> page, and passing
> the login primary key to other pages so that other tables 
> will be able to
> refernce the unique login
> 
> thanks
> steve
> 
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    
> http://lists.mysql.com/mysql?> [EMAIL PROTECTED]
> 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to