Results 1 to 3 of 3

Thread: session unset / session destroy

  1. #1
    Join Date
    Apr 2010
    Posts
    26

    Default session unset / session destroy

    When I logout from the website i checked the static function logout () in the class.user.php after the session unset code there is no session destroy used. Why?

    I'm looking forward to your answer

    thank you

  2. #2
    Join Date
    Sep 2008
    Posts
    1,019

    Default

    While I cannot speak for the developers, my guess as to why is that prior to vShare 2.7, vShare used (and required) superglobals. Superglobals cannot be unset using session_destroy(). When vShare 2.7 was done, they likely just went with using just session_unset(), which clears out the values of the variables and never added a session_destroy(), which deletes the variables altogether, since they were already using session_unset() to unset the superglobals.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  3. #3
    Join Date
    Apr 2010
    Posts
    26

    Default

    thanks for your answer bplex, I know what you told, and that's correct.

    Forg4t

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
  •