Re: $_SESSION vs. $variable
From: Pedro Graca (hexkid_at_hotpop.com)
Date: 03/11/04
- Next message: René: "Re: Website Run By Offsets Query"
- Previous message: Guillaume Brocker: "Re: Constants or variables"
- In reply to: Ken: "Re: $_SESSION vs. $variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Mar 2004 11:24:53 GMT
Ken wrote:
> What is the operational difference between
>
> $_SESSION['variable]
>
> $variable
>
> $_POST['variable']
| creation | lifetime | scope
------------+------------------+----------------+---------
$variable | first use | end of script | local
$_POST[] | init (by client) | end of script | global
$_SESSION[] | init (by server) | end of session | global
I think this pretty much sums it up :)
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
- Next message: René: "Re: Website Run By Offsets Query"
- Previous message: Guillaume Brocker: "Re: Constants or variables"
- In reply to: Ken: "Re: $_SESSION vs. $variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]