diff --git a/src/Pluf/Middleware/Session.php b/src/Pluf/Middleware/Session.php index b831f4c..3405bef 100644 --- a/src/Pluf/Middleware/Session.php +++ b/src/Pluf/Middleware/Session.php @@ -99,7 +99,7 @@ class Pluf_Middleware_Session } else { $request->session = $session; } - if ($set_lang) { + if ($set_lang and $set_lang != $request->session->getData('pluf_language')) { $request->session->setData('pluf_language', $set_lang); } if (isset($request->COOKIE[$request->session->test_cookie_name])) {