1 | <?php |
||
34 | class HttpSessionWrapper extends ServletSessionWrapper implements HttpSessionInterface |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Injects the passed HTTP session instance into this servlet session wrapper. |
||
39 | * |
||
40 | * @param \AppserverIo\Psr\Servlet\Http\HttpSessionInterface $session The session instance used for initialization |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function injectHttpSession(HttpSessionInterface $session) |
||
48 | |||
49 | /** |
||
50 | * Returns the servlet session instance. |
||
51 | * |
||
52 | * @return \AppserverIo\Psr\Servlet\Http\HttpSessionInterface The session instance |
||
53 | */ |
||
54 | public function getSession() |
||
58 | |||
59 | /** |
||
60 | * Generates and propagates a new session ID and transfers all existing data |
||
61 | * to the new session. |
||
62 | * |
||
63 | * @return string The new session ID |
||
64 | * @throws \AppserverIo\Psr\Servlet\IllegalStateException |
||
65 | */ |
||
66 | public function renewId() |
||
70 | |||
71 | /** |
||
72 | * Shuts down this session |
||
73 | * |
||
74 | * This method must not be called manually – it is invoked by Flow's object |
||
75 | * management. |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | public function shutdownObject() |
||
83 | |||
84 | /** |
||
85 | * Explicitly writes and closes the session |
||
86 | * |
||
87 | * @return void |
||
88 | */ |
||
89 | public function close() |
||
93 | } |
||
94 |