API - XOOPS 2.5.11 Beta 2
By monxoops.fr
xoopssetcookie.php File Reference

Functions

 xoops_setcookie ()
 
 xoops_buildCookieHeader ($args)
 

Function Documentation

◆ xoops_buildCookieHeader()

xoops_buildCookieHeader (   $args)
Parameters
array$args'name', 'value' and 'options' corresponding to php 7.3 arguments to setcookie()
Returns
string
Here is the caller graph for this function:

◆ xoops_setcookie()

xoops_setcookie ( )

Near drop-in replacement for PHP's setcookie()

Author
Richard Griffith richa.nosp@m.rd@g.nosp@m.eekwr.nosp@m.ight.nosp@m..com

This exists to bring samesite support to php versions before 7.3, and it treats the default as samesite=strict

It supports both of the two declared signatures:

  • setcookie ( string $name , string $value = "" , int $expires = 0 , string $path = "" , string $domain = "" , bool $secure = false , bool $httponly = false ) : bool
  • setcookie ( string $name , string $value = "" , array $options = [] ) : bool
Here is the call graph for this function:
Here is the caller graph for this function: