1: <?php
2:
3: namespace Mapbender\DrupalIntegrationBundle\Session;
4:
5: class DrupalSessionHandler implements \SessionHandlerInterface
6: {
7: public function __construct()
8: {
9: //die("BFA");
10: }
11:
12: /**
13: * {@inheritDoc}
14: */
15: public function open($path, $name)
16: {
17: return true;
18: }
19:
20: /**
21: * {@inheritDoc}
22: */
23: public function close()
24: {
25: return true;
26: }
27:
28: /**
29: * {@inheritDoc}
30: */
31: public function destroy($id)
32: {
33: _drupal_session_destroy($id);
34: return true;
35: }
36:
37: /**
38: * {@inheritDoc}
39: */
40: public function gc($lifetime)
41: {
42: _drupal_session_garbage_collection($lifetime);
43: return true;
44: }
45:
46: /**
47: * {@inheritDoc}
48: */
49: public function read($id)
50: {
51: return _drupal_session_read($id);
52: }
53:
54: /**
55: * {@inheritDoc}
56: */
57: public function write($id, $data)
58: {
59: _drupal_session_write($id, $data);
60: return true;
61: }
62: }
63: