Skip to content
Browse files

Added remove_session_data. Thanks to Roberto Saccon

  • Loading branch information...
1 parent 2538431 commit d21135de4a0b30459f34cf6ed47f6a474c7c2c5a @davebryson committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/beepbeep_args.erl
View
9 src/beepbeep_args.erl
@@ -21,6 +21,7 @@
set_session_id/2,
set_session_data/3,
get_session_data/2,
+ remove_session_data/2,
get_all_session_data/1,
get_action/1,
set_action/2,
@@ -172,6 +173,14 @@ get_all_session_data(Env) ->
get_session_data(Key,Env) ->
proplists:get_value(Key,get_all_session_data(Env)).
+
+%%
+%% @doc Remove a Key,Value in the session
+%%
+remove_session_data(Key,Env) ->
+ Sid = get_session_id(Env),
+ beepbeep_session_server:remove_session_data(Sid,Key).
+
%%
%% @doc Return the current requested action
%%

0 comments on commit d21135d

Please sign in to comment.
Something went wrong with that request. Please try again.