Skip to content

Commit

Permalink
add function start_session
Browse files Browse the repository at this point in the history
  • Loading branch information
schpill committed Sep 17, 2016
1 parent 6a81556 commit 58e87da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3165,3 +3165,10 @@ function serviceProvider($alias, callable $resolver = null)

return $res;
}

function start_session()
{
if (!session_id()) {
session_start();
}
}

0 comments on commit 58e87da

Please sign in to comment.