This is a discussion on Re: [PHP] Where am i screwing up? within the PHP General forums, part of the PHP Programming Forums category; * Thus wrote John Manko (xerid@adelphia.net): > Can someone correct me on this if i'm wrong....... > > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
* Thus wrote John Manko (xerid@adelphia.net):
> Can someone correct me on this if i'm wrong....... > > try (meaning, I think that $vars as $keys will put the value into $key, > not the key itself): > > foreach ($vars as $key=>$value) // clear all previous sessions > { > if(isset($_SESSION['$key'])) > { > unset($_SESSION['$key']); > } > } That is correct. Curt -- "I used to think I was indecisive, but now I'm not so sure." |