ob_sessrewrite

Description

Rewrites the URLs outputted to have the session ID, if the user is not accepting cookies and is using a standard web browser.

Syntax

string ob_sessrewrite (string $buffer)



Parameter $buffer

Expected type: String
Description: The query string / output buffer



Return value

Expected type: String
Description: The rewritten output buffer


Notes

  • Handles rewriting URLs for the queryless URLs option.
  • Can be turned off entirely by setting $scripturl to an empty string, ''. (it wouldn't work well like that anyway).
  • Because of bugs in certain builds of PHP, does not function in versions lower than 4.3.0 - please upgrade (or beg your host to) if this hurts you.
Advertisement: