Session issues

I’m fairly new to PHP and having problems trying to figure out how to update a session array that is expandable. When I try and update a specific key within the associative session array it adds it to the end of the array. What I want to do is select a specific key and update the key value and then display it. Similar to updating quantity during a check out process within a shopping cart

Any help is much appreciated.

[php]$_SESSION[‘some_key’] = ‘some_value’;

// OR

$_SESSION[‘some_array_key’][‘some_key’] = ‘some_value’;[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service