This class contains externs for native PHP functions defined in global namespace. For native PHP constants in global namespace see php.Const.

Static methods

staticsession_set_save_handler(open:(String, String) ‑> Bool, close:() ‑> Bool, read:String ‑> String, write:(String, String) ‑> Bool, destroy:String ‑> Bool, gc:Int ‑> Bool, ?create_sid:() ‑> String, ?validate_sid:Function, ?update_timestamp:Function):Bool

@:value({ register_shutdown : true })staticsession_set_save_handler(sessionhandler:SessionHandlerInterface, register_shutdown:Bool = true):Bool

@:value({ httponly : false, secure : false, domain : "", path : "", expire : 0, value : "" })staticsetcookie(name:String, value:String = "", expire:Int = 0, path:String = "", domain:String = "", secure:Bool = false, httponly:Bool = false):Bool

@:value({ value : "" })staticsetcookie(name:String, value:String = "", ?options:NativeStructArray<{secure:Null<Bool>, samesite:Null<String>, path:Null<String>, httponly:Null<Bool>, expires:Null<Int>, domain:Null<String>}>):Bool