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


Groups > comp.lang.php > #17730

Re: PHP sessions

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: PHP sessions
Date Sun, 6 May 2018 17:27:14 +0200
Organization solani.org
Lines 24
Message-ID <pcn6sg$mmc$1@solani.org> (permalink)
References <pcmdpu$2ek$1@dont-email.me> <pcmmoc$b4p$1@solani.org> <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>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1525620432 23244 eJwNy8EBwCAIA8CVBCWQcRBh/xHa+59tCMoPDMfGhnkGrLsDa2W1cw6Dc7cpCz5Qj2k1/c9UasoWqELL72Kzn6R2LLxeXQyRy3RI1GO5fX+ZHe4= (6 May 2018 15:27:12 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 6 May 2018 15:27:12 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
X-NNTP-Posting-Host eJwFwQcBwEAIBDBLrANeDmX4l9AE6uwd5nDD4QrPaUwyBs5Y33iuLVRyd0aiMTm++wW1xHyST7YSJl2FFmYihMXLCFZIfk02UWB9u/cDYTkdPw==
In-Reply-To <pcn5d7$39g$1@dont-email.me>
Content-Language de-DE
Cancel-Lock sha1:uVzr/1pKycBykpEWDZFLc0OafFI=
X-User-ID eJwFwYEBwCAIA7CXpBSG51iU/09YEp6W/TEjGRPDbhdKfp3znhJD1+ZCNawuS+vsCIew7egHIZ4Q8g==
Xref csiph.com comp.lang.php:17730

Show key headers only | 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