Permalink
Browse files

fixed session cookie saved to path /

  • Loading branch information...
1 parent 66ef7c1 commit e4c76ab5f6a54f5b44b55bb2fb7fc72c44871b3c @ostinelli committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/misultin_sessions.erl
@@ -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()}.

0 comments on commit e4c76ab

Please sign in to comment.