Created
September 19, 2019 18:28
-
-
Save parzibyte/51fa666c08f97c3d9869f033d4f5a195 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function write($id_de_sesion, $datos_de_sesion) | |
{ | |
$ultimo_acceso = time(); | |
$sentencia = $this->base_de_datos->prepare("REPLACE INTO sesiones (id, datos, ultimo_acceso) VALUES (?, ?, ?);"); | |
return $sentencia->execute([$id_de_sesion, $datos_de_sesion, $ultimo_acceso]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment