No announcement yet.

Does vB use PHP built in sessions?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Does vB use PHP built in sessions?

    I wonder whether vB uses the built in PHP session management or how you guys do it?

    In none of the .php files I found session_register or session_start.

  • #2
    vB uses their own Session system, they're not using PHP's session management in any way whatsoever.

    If you want to learn about vB's session system, look into /includes/sessions.php (vB3) for some stuff, and /global.php as well...


    • #3
      Is there any documentation available?
      I have some (simple) key questions:

      Assume I have a user logged into the board. I include global.php (with the well-known chdir, include_once sequence).

      Can I store my own variables into the active session and retrieve them back in another page, which is obviously also including global.php? How do I do it?

      Some advise would be perfect to get a start.


      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.