SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2006
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    session destroy error

    Hi,

    When I start a session and then destroy it i get the following error:
    Warning: session_destroy(): Session object destruction failed in **** line **

    The problem is that when I have
    session_start();
    session_regenerate_id();
    session_destroy();

    I get that error but when session_regenerate_id(); is commented the error does not appear. I have googled this error and found out that it has been fixed in later php version as on php 5.2.0 i do not get the error but in 5.1.2 i do, funny enough in 4.6.0 i dont get the error to. Anyone with any ideas on how i can get the problem to not persist in 5.2.1?

    I have used $_SESSION = array() and the unset feature. I use all three to make sure the sesion is destroyed.

    Regards
    p_h_p

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Looks like a bug, so there's no reason to think it's gonna reappear in later versions.
    Saul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •