Comments (5)
HI!
Did you solve the problem?
from chicagoboss.
Hi,
I had to use version 1.9 of erlang to work.
from chicagoboss.
Hi!
Please pay attention, CB of last version have 'cowboy' dependence '2.6.1':
https://github.com/ChicagoBoss/ChicagoBoss/blob/0.9-beta2/rebar.config#L32
Old versions of CB have 'cowboy' dependence '1.0.3':
https://github.com/ChicagoBoss/ChicagoBoss/blob/v0.9-beta1/rebar.config#L32
Maybe you form cookies use outside tools, for example 'mochiweb_cookies' and set their in headers of response?
In this case you should look to invokes chain:
https://github.com/ChicagoBoss/ChicagoBoss/blob/master/src/boss/boss_simple_bridge_handler.erl#L27
->
https://github.com/nitrogen/simple_bridge/blob/d4fc5d10716317bc0a21abab94d84965a620598d/src/sbw.erl#L506
->
https://github.com/nitrogen/simple_bridge/blob/d4fc5d10716317bc0a21abab94d84965a620598d/src/cowboy_bridge_modules/cowboy_simple_bridge.erl#L182
->
https://github.com/nitrogen/simple_bridge/blob/d4fc5d10716317bc0a21abab94d84965a620598d/src/cowboy_bridge_modules/cowboy_simple_bridge.erl#L231
->
https://github.com/nitrogen/simple_bridge/blob/d4fc5d10716317bc0a21abab94d84965a620598d/src/cowboy_bridge_modules/cowboy_simple_bridge.erl#L276
->
https://github.com/ninenines/cowboy/blob/master/src/cowboy_req.erl#L718
Since '2.0.0-pre.4' version, cowboy 'Req' instance transformed from list of tuples to maps.
from chicagoboss.
Hi,
No, I'm use only boss_session:set_session_data(SessionID, logged_user, User). boss_web_controller_handle_request
uses mochiweb_cookies:cookie
. This is the problem?
boss_web_controller_handle_request:add_session_to_headers
add_session_to_headers(Req, Headers, SessionID) ->
SessionExpTime = boss_session:get_session_exp_time(),
CookieOptions = [
{domain, boss_env:get_env(session_domain, undefined)},
{path, "/"},
{max_age, SessionExpTime},
{secure, boss_env:get_env(session_cookie_secure, false)},
{http_only, boss_env:get_env(session_cookie_http_only, true)}
],
SessionKey = boss_session:get_session_key(),
lists:merge(Headers, [mochiweb_cookies:cookie(SessionKey, SessionID, CookieOptions)]).
from chicagoboss.
boss add set-cookie in headers, but on new version of cowboy need set in Res#response.cookies. Right?
from chicagoboss.
Related Issues (20)
- How can I use mail_relay_use_ssl in boss.config HOT 2
- Ubuntu 16.04 install error
- is this web framework dead ? HOT 1
- Installing on Mac: make: *** [compile] Error 1 HOT 6
- Problem on BossDB ORM Mapping
- Possible memory leak in session controller
- Was setting up project by tutorial and have got error. HOT 7
- Any performance benchmark done on it ?
- what's the story of Chicago Boss?
- Project Template Still Points to beta-1
- fatal: repository 'https://github.com/layerhq/erlmc.git/' not found HOT 1
- Compiling ChicagoBoss/deps/aleppo/src/aleppo_parser.yrl failed: HOT 3
- High CPU usage HOT 3
- Windows installation
- Hangs fetching erlmc
- make fails on erlmc HOT 3
- Getting startrd not work OTP 21 HOT 2
- Make fails on m1
- is this project dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chicagoboss.