Skip to content

Commit ada264e

Browse files
committed
feat: add alias for unset
1 parent 7bb0043 commit ada264e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Http/Session.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ public static function delete($key)
136136
static::unset($key);
137137
}
138138

139+
/**
140+
* Remove a session variable
141+
*/
142+
public static function remove($key)
143+
{
144+
static::unset($key);
145+
}
146+
139147
/**
140148
* Remove all session variables
141149
*/
@@ -163,7 +171,6 @@ public static function destroy()
163171
public static function reset($id = null)
164172
{
165173
static::start();
166-
167174
session_reset();
168175
static::id($id);
169176
}
@@ -184,6 +191,7 @@ public static function id($id = null)
184191
}
185192

186193
session_id($id);
194+
187195
static::set('id', $id);
188196

189197
return $id;

0 commit comments

Comments
 (0)