Go to the Home screen by pressing the Home button or by unlocking your phone/iPad

Select the Settings icon.

Select Safari from the settings menu.

Select 'accept cookies' from the safari menu.

Select 'from visited' from the accept cookies menu.

Press the home button to return the the iPhone home screen.

Select the Safari icon to return to Safari.

Before the cookie settings change will take effect, Safari must restart. To restart Safari press and hold the Home button (for around five seconds) until the iPhone/iPad display goes blank and the home screen appears.