Skip to content

Commit

Permalink
fixed session cookie saved to path /
Browse files Browse the repository at this point in the history
  • Loading branch information
ostinelli committed Dec 12, 2011
1 parent 66ef7c1 commit e4c76ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misultin_sessions.erl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ start_link(Options) when is_tuple(Options) ->
% return session cookie
-spec set_session_cookie(SessionId::string()) -> {http_header(), string()}.
set_session_cookie(SessionId) ->
misultin_cookies:set_cookie(?SESSION_HEADER_NAME, SessionId, [{max_age, 365*24*3600}]).
misultin_cookies:set_cookie(?SESSION_HEADER_NAME, SessionId, [{max_age, 365*24*3600}, {path, "/"}]).

% retrieve session info or start a session if necessary.
-spec session(ServerRef::pid(), Cookies::gen_proplist(), PeerAddr::inet:ip_address()) -> {SessionId::string(), SessionState::term()}.
Expand Down

0 comments on commit e4c76ab

Please sign in to comment.