Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
active forget about the session content
Browse files Browse the repository at this point in the history
Robert Kummer committed Jan 15, 2015
1 parent 81c1009 commit c977fd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Ipunkt/LaravelAnalytics/TrackingBag.php
Original file line number Diff line number Diff line change
@@ -39,7 +39,12 @@ public function add($tracking)
public function get()
{
if (Session::has($this->sessionIdentifier)) {
return Session::get($this->sessionIdentifier);
$trackings = Session::get($this->sessionIdentifier);

// forget the session store data
Session::forget($this->sessionIdentifier);

return $trackings;
}

return [];

0 comments on commit c977fd6

Please sign in to comment.