I have the following in a page e.g. /mypage?myvar=oldvalue
$_SESSION['myvar'] = $_GET['myvar'];
$myvar = 'a_new_string'
Now $_SESSION['myvar']
has the value 'a_new_string'
Is this by design?
How can I copy the value of 'myvar' rather than a reference to it?