Re: Create a new $_COOKIE["PHPSESSID"] in PHP4.3.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hy....

try this....

        $sess_id = session_id();
        // Unset all Session Vars
        session_unset();
        // Destroy Session
        session_destroy();

        /*
        // Get session file and delete it !!!
        if (strtolower('files' == session_module_name()))
        {

            if( substr(PHP_OS, 0, 3) == 'WIN' )
            {
                $tz = "//";
                $path = str_replace( chr(92) , $tz , session_save_path() );
            }
            else
            {
                $tz = "/";
                $path = session_save_path();
            }

            @unlink($path . $tz .'sess_'. $sess_id );
        }
        */
---------------------------------------------------------------------------------------------------------------
 PGP Public Key: www.rt31x-tutorial.de/php/Steffen Stollfuss_pub.asc
---------------------------------------------------------------------------------------------------------------


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux