Skip to content

Fix session always assign even when not flash is not set#34

Open
ducdigital wants to merge 2 commits intojaredhanson:masterfrom
ducdigital:ducdigital-flash-session-fix
Open

Fix session always assign even when not flash is not set#34
ducdigital wants to merge 2 commits intojaredhanson:masterfrom
ducdigital:ducdigital-flash-session-fix

Conversation

@ducdigital
Copy link
Copy Markdown

This fix make sure that session.flash is only get assign when setting a flash. Session will not be set if using req.flash('name') just to get flash's data

ducdigital added 2 commits May 4, 2016 13:25
Only create session when 2nd params is used and clear the flash session if it's not used anymore
@ducdigital ducdigital changed the title Fix session always assign even when not used Fix session always assign even when not flash is not set May 4, 2016
@brendonparker
Copy link
Copy Markdown

+1 for this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants