summaryrefslogtreecommitdiff
path: root/core/classes/session/DefaultSession.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-27 03:47:30 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-27 03:47:30 +0300
commit059e0d95d0c28bc5060e87e146eaf7411f51bf90 (patch)
tree7c21ac432f16dde2329a0d5954d70711eceb48e6 /core/classes/session/DefaultSession.php
parent26cd8ee99659ef1926c96a049c93645ffc9b169d (diff)
downloadgyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.gz
gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.bz2
gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.zip
skeleton commit; based on an anom project
Diffstat (limited to 'core/classes/session/DefaultSession.php')
-rw-r--r--core/classes/session/DefaultSession.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/core/classes/session/DefaultSession.php b/core/classes/session/DefaultSession.php
new file mode 100644
index 0000000..079ab9d
--- /dev/null
+++ b/core/classes/session/DefaultSession.php
@@ -0,0 +1,42 @@
+<?php
+
+/** DefauleSession
+ * --
+ *
+ * is a dummy session hanlder that wraps the
+ * php's default session engine implementation;
+ *
+ */
+class DefaultSession implements SessionHandlerInterface {
+
+ public function __construct()
+ {
+ // Start the session
+ // (the default way)
+ // and let the session* functions
+ // do what they know
+ session_name(SESSION_NAME);
+ session_start();
+ }
+
+ #[\ReturnTypeWillChange]
+ public function open(string $path, string $name) {}
+
+ #[ReturnTypeWillChange]
+ public function close() {}
+
+ #[ReturnTypeWillChange]
+ public function read(string $id) {
+
+ }
+
+ #[ReturnTypeWillChange]
+ public function write(string $id, string $data) {}
+
+ #[ReturnTypeWillChange]
+ public function destroy(string $id) {}
+
+ #[ReturnTypeWillChange]
+ public function gc(int $max_lifetime) {}
+
+} \ No newline at end of file