Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Randomly start of new sessions #31

Open
LucileDT opened this issue Jan 25, 2018 · 1 comment
Open

Randomly start of new sessions #31

LucileDT opened this issue Jan 25, 2018 · 1 comment
Assignees
Milestone

Comments

@LucileDT
Copy link
Member

Replace on each ...Action(Request $request) the statement $session = new Session(); by $session = $request->getSession();

See also: https://symfony.com/doc/3.4/components/http_foundation.html#accessing-the-session

Like, you could add something like:

if ($request->hasPreviousSession())
{
    $session = $request->getSession();
}
else
{
    $session = new Session();
}
@LucileDT LucileDT changed the title Randomly starting of new sessions Randomly start of new sessions Jan 25, 2018
@LucileDT LucileDT added this to the 1.0.0 milestone Jan 25, 2018
@LucileDT LucileDT assigned DarckCrystale and unassigned hundrex Feb 9, 2018
@LucileDT
Copy link
Member Author

LucileDT commented Feb 9, 2018

This have been done, @hundrex could you check this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants