From: | Charles Tassell <ctassell(at)isn(dot)net> |
---|---|
To: | "Gary MacMinn" <G(dot)MacMinn(at)nca(dot)gov(dot)au>, sheilabel(at)hotmail(dot)com, davew(at)landie(dot)demon(dot)co(dot)uk, pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] passing variables in PHP3 |
Date: | 2000-02-28 02:00:24 |
Message-ID: | 4.2.0.58.20000227215616.009f58f0@mailer.isn.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
The usual problem you experience with cookies is that they have to be sent
with the header information, so your PHP script can not have any output
before you call setcookie(). A bit of an annoyance, but it's the standard.
You can find examples of setcookie in action at
http://www.php.net/manual/function.setcookie.php3
At 09:04 PM 2/27/00, Gary MacMinn wrote:
>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 work correctly.
>
>TIA,
>
>Gary MacMinn
>
> >>> Dave White <davew(at)landie(dot)demon(dot)co(dot)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.
>
>
>************
>
>
>
>************
From | Date | Subject | |
---|---|---|---|
Next Message | Lincoln Yeoh | 2000-02-28 03:33:24 | Re: [GENERAL] passing variables in PHP3 |
Previous Message | Tatsuo Ishii | 2000-02-28 01:33:50 | Re: [GENERAL] passing variables in PHP3 |