Jump to content

unset SESSION


phpretard

Recommended Posts

How do I unset just one part of the array?

 

unset($_SESSION[$file]['P1040050.jpg']); <--doesn't work

 

$_SESSION:Array
(
    [P1040050.jpg] => Array
        (
            [picture] => ALBUMS/Holmes_Adams/P1040050.jpg
            [file] => P1040050.jpg
            [s46] => 4 x 6
            [QU46] => 10
            [s57] => 5 x 7
            [QU57] => 20
            [s810] => 8 x 10
            [QU810] => 30
            [order_photo] => Order This Photo
        )

    [P1040052.jpg] => Array
        (
            [picture] => ALBUMS/Holmes_Adams/P1040052.jpg
            [file] => P1040052.jpg
            [s46] => 4 x 6
            [QU46] => 30
            [s57] => 5 x 7
            [QU57] => 20
            [s810] => 8 x 10
            [QU810] => 10
            [order_photo] => Order This Photo
        )
)

Link to comment
https://forums.phpfreaks.com/topic/101820-unset-session/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.