Re: [GENERAL] passing variables in PHP3 - Mailing list pgsql-general

From Gary MacMinn
Subject Re: [GENERAL] passing variables in PHP3
Date
Msg-id s8ba649c.029@syd_aux.nca.gov.au
Whole thread Raw
Responses Re: [GENERAL] passing variables in PHP3  (Charles Tassell <ctassell@isn.net>)
List pgsql-general
Dave,

Would you have any samples of this in action? I have been playing with cookies and don't seem to be able to get them to
workcorrectly. 

TIA,

Gary MacMinn

>>> Dave White <davew@landie.demon.co.uk> 28/02/00 10:33:18 >>>
sheila bel wrote:

> I've written an application for the web that asks users for their
> id and password, checks the database and if they are legit
> takes them to a page. Now I'm using the PHP_AUTH_USER variable
> to identify the user and I need that information from one
> file to another. How do I do that ?

Simplest way is to use a cookie, set it to be a cookie that times out after
the current session so you can ask the user to login again when they start
another session. PHP will pass you the cookie data with every page the user
requests after that point.

See the function "cookie" in the PHP manuals.

regards

Dave W.

--
I want to die in my sleep like my grandfather... Not screaming and yelling
like the passengers in his bus.


************



pgsql-general by date:

Previous
From: Dave White
Date:
Subject: Re: [GENERAL] passing variables in PHP3
Next
From: Tatsuo Ishii
Date:
Subject: Re: [GENERAL] passing variables in PHP3