php-general Digest 16 Aug 2013 15:08:25 -0000 Issue 8333

Topics (messages 321848 through 321849):

Re: Session_unset - session_destroy issue
        321848 by: Stuart Dallas

Re: How to upstream code changes to php community
        321849 by: Daniel Brown

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
On 15 Aug 2013, at 19:16, dealTek <[email protected]> wrote:

> Hi all,
> 
> I am having trouble with session_destroy - session_unset and $_SESSION = 
> array()... I am trying to STOP and destroy all session vars......
> 
> 
> with the simple code test below I would think it would echo test 1 BUT FAIL 
> on test2 
> - however it shows both for me...
> 
> how do I UNSET - DESTROY SESSIONS?
> 
> 
> <?php
> 
> 
> session_start();
> 
> $_SESSION['var1'] = 'test1';
> echo '<br /> test1 '. $_SESSION['var1'].' ';
> 
> session_unset();
> session_destroy();
> $_SESSION = array();
> 
> 
> $_SESSION['var1'] = 'test2';
> 
> echo '<br /> test2 ' . $_SESSION['var1'];
> 
> 
> 
> ?>

The $_SESSION superglobal variable is nothing more than that. Calling 
session_start will populate it with an existing session, and when the request 
ends the contents will be stored. Once you've closed or destroyed the session 
it does not stop working because it's nothing more than a superglobal variable, 
it just won't be stored at the end of the request.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

--- End Message ---
--- Begin Message ---
On Tue, Aug 13, 2013 at 12:38 AM, Shahina Rabbani
<[email protected]> wrote:
> Hi,
>
> I have done some modifications to the php source code and i tested it with
> php bench and I observed  some improvement.
>
> I wanted to upstream these code changes to PHP community.
> I searched the wed but i didnt find proper guide to upstream the code to
> php.
>
> Please help me by  providing the information how to upstream my code
> changes to php  source code community.

    Start by subscribing to [email protected] and introducing
yourself on that list, which is intended for the discussion of the
ongoing development of the runtime and related things.  You may also
want to hop on EFNet and join #php.pecl, which - like internals@ - is
specifically for discussion of furthering the core development (not
for any time of support).

-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--- End Message ---

Reply via email to