Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Landing page issue

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Landing page issue

Postby tohtoh » Tue Nov 20, 2012 1:18 am

I have an existing website which I added a landing page (Similar to how Groupon or deal site) where once a user launched the site, it will pop up this landing page asking user to subscribe newsletter.

However, once user click the close button to close the landing page, it will re-appear when user click on any link. I'm puzzled how come this landing page will re-appear a second time as it's irritating.

Please provide advice. Many thanks.
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Nov 20, 2012 1:01 am

Re: Landing page issue

Postby msmohan » Tue Nov 20, 2012 5:35 am


First tell me how you achieved the landing page.

We can achieve it in two ways, using session and cookie. When any user come to visit your site then you should show the landing page once. before you showing the landing page set a session flag as 1 and check the sessions flag null or 1 before rendering the landing page. simple!
New php-forum User
New php-forum User
Posts: 36
Joined: Sun Jun 05, 2011 9:03 pm

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.