Use alternative front page if cookie is set

I ended up using a workaround method: In the home page template file, I verify if the cookie is set and if so, I retrieve the data from the alternative page, as opposed to from the current page.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)