Re: Re: [PHP3] Sessions - PHP Vs. ASP
| From: | Sascha Schumann | Date: | Fri, 30 Jun 2000 19:52:05 +0000 |
| Subject: | Re: Re: [PHP3] Sessions - PHP Vs. ASP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4129@lists.php.net to get a copy of this message | ||
On Fri, 30 Jun 2000, Richard Lynch wrote:
> In article <20000620162553.28725.qmail@web3706.mail.yahoo.com>,
> thomasedisonjr@yahoo.com ("Thomas Edison Jr.") wrote:
>
> > How different are PHP sessions from ASP sessions? How
> > do u really use sessions in PHP? I'm from an ASP
> > background and i always found sessions to be one of
> > the most usefull things in ASP.
>
> ASP sessions use cookies, and if the user refuses cookies, you're screwed,
> but Microsoft buries that fact 'way in their docs, and mostly refers to
> session variables as if they just always work by magic.
>
> PHP assumes you have a clue, and thus are willing to a little extra work
> to get the functionality you think is best, and provides a slightly
> lower-level support.
>
> In particular, you need to do:
>
> session_start();
>
> at the top of any page using sessions, and
There is a feature called auto start. What it does? It
automatically starts the session at request startup. To
enable it, set session.auto_start to 1 in your config file or
using appropiate web server configuration directives.
- Sascha