PHP: Over-writing session variables

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-04T14:13:24Z Indexed on 2010/04/04 14:23 UTC
Read the original article Hit count: 227

Hi,

Question related to PHP memory-handling from someone not yet very experienced in PHP:

If I set a PHP session variable of a particular name, and then set a session variable of the exact same name elsewhere (during the same session), is the original variable over-written, or does junk accumulate in the session?

In other words, should I be destroying a previous session variable before creating a new one of the same name?

Thank you.

© Stack Overflow or respective owner

Related posts about php

Related posts about session