I don\'t know what is wrong with this php script but it makes the remember log-in for the device iPhone stop working (will log out every time when refresh the page) but the othe
Use session_set_cookie_params on the header:
session_set_cookie_params(2*7*24*60*60);