SESSION problems

    Date: 05/30/05 (PHP Community)    Keywords: no keywords

    Hi Everyone, I am having problems unsetting a variable stored in SESSION.
    I am storing this variable called crh_current_page. I need to reset or unset it when a new list is requested. I have a function that tests whether a new list was requested and that is supposed to take care of zeroing the list. Here is my code.

    // clear the list if we submitted a search
    if(isset($_POST['show_list']) && ($_POST['show_list'] == 'show_list'))
    {
    	unset($_SESSION['crh_current_page']);
    	unset($_GET['incdec']);
    }
    


    ** EDIT
    thanks for help. The problem was me as usual resetting the variable somewhere that I was not looking.

    Source: http://www.livejournal.com/community/php/302243.html

« Hello I new and I need help... || Help »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home