<?
session_unregister ($ses_name[$position]);
session_unregister ($ses_amount[$position]);
session_unregister ($ses_price[$position]);
session_unregister ($ses_id[$position]);
session_unregister ($ses_des[$position]);
session_unregister ($ses_ship[$position]);
session_unregister ($ses_items[$position]);
?>
The code above is what I am trying to use to delete a sessions var. for some reason it will not work worth a lick.
I have two pages one page loads the item into the session with a link to keep on searching or view what they have in the carte. I also have a link in the view carte page that says delete/remove. The link would look like this
http://www.someting.com/delete.php?position=0
of course I will get the positon value from when I loop through the session. So on the delete page I have the code above. Once it runs, I get no errors at all, I go back to the view page to make sure that the item was indeed moved. I find it is not 🙁
So any ideas about what I am doing wrong?
Thanks for you help in advance!!
Cheers!
Stephen