Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17730

Re: PHP sessions

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: PHP sessions
Date 2018-05-06 17:27 +0200
Organization solani.org
Message-ID <pcn6sg$mmc$1@solani.org> (permalink)
References (2 earlier) <pcmqnr$n17$1@dont-email.me> <pcmrhu$t5l$1@dont-email.me> <pcmunn$j5s$1@dont-email.me> <pcmvi9$hdd$1@solani.org> <pcn5d7$39g$1@dont-email.me>

Show all headers | View raw


On 06.05.2018 at 17:01, madwomans Dad wrote:

> On 06/05/2018 14:22, Christoph M. Becker wrote:
>
>> Then just don't use PHP. :)
> 
> Unfortunately the LAMP stack is part of my life for the next 3 months.
> L I can live with, I use it every day anyway, A isn't a container so I
> could care less, M, I've been using for years. But P, I've avoided it so
> far so I suppose it had to happen eventually. I'll stop bitching and
> whining now and suck it up. Depressing but survivable I suppose.

Way better attitude, thanks!

PHP in a LAMP stack is similar to CGI applications: each request starts
with a clean slate.  Therefore the session has to be started/resumed
each time.

Wrt. object serialization in sessions, see
<http://www.php.net/manual/en/language.oop5.serialization.php>.
Personally, I suggest to use autoloading anyway.

-- 
Christoph M. Becker

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PHP sessions madwomans Dad <dsvirtual58@gmail.com> - 2018-05-06 09:19 +0100
  Re: PHP sessions "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-05-06 12:51 +0200
    Re: PHP sessions madwomans Dad <dsvirtual58@gmail.com> - 2018-05-06 12:59 +0100
      Re: PHP sessions "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-05-06 14:11 +0200
      Re: PHP sessions Gregor Kofler <usenet@gregorkofler.com> - 2018-05-06 14:13 +0200
        Re: PHP sessions madwomans Dad <dsvirtual58@gmail.com> - 2018-05-06 14:08 +0100
          Re: PHP sessions "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-05-06 15:22 +0200
            Re: PHP sessions madwomans Dad <dsvirtual58@gmail.com> - 2018-05-06 16:01 +0100
              Re: PHP sessions "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-05-06 17:27 +0200
                Re: PHP sessions madwomans Dad <dsvirtual58@gmail.com> - 2018-05-06 19:17 +0100
      Re: PHP sessions "J.O. Aho" <user@example.net> - 2018-05-06 18:57 +0200
  Re: PHP sessions Richard Damon <Richard@Damon-Family.org> - 2018-05-06 13:21 -0400

csiph-web