İptal Edildi

My webapp has a login/logout function, In safari of iphone I can't logout, it seems like my php script can't cancle cookie

I create a login/logout function for my web project with php, It works fine with browser in pc and browser in Android. But in iphone it dosen't work, some time I can not logout, it seems like my php script can't cancle cookie.

I use this code for login by setting cookie:

session_start();

setcookie("us", $email, time() + (86400 * 30), "/", $_SERVER['SERVER_NAME'], isset($_SERVER["HTTPS"]), true);

setcookie("ps",$password, time() + (86400 * 30), "/", $_SERVER['SERVER_NAME'], isset($_SERVER["HTTPS"]), true);

I use this for logout by cancle cookie:

session_start();

setcookie("us", null, time()-3600, "/", $_SERVER['SERVER_NAME'], isset($_SERVER["HTTPS"]), true);

setcookie("ps", null, time()-3600, "/", $_SERVER['SERVER_NAME'], isset($_SERVER["HTTPS"]), true);

setcookie("PHPSESSID", null, time()-3600, "/");

$_SESSION = array();

session_unset();

session_destroy();

header('Location: [login to view URL]');

When start my page the php will check if there is cookie for login automatic:

session_start();

if(isset($_COOKIE["us"])){

//verify this user...

}

Beceriler: PHP, Web Development, Web Güvenliği

Daha fazlasını gör: the life of pablo i feel like pablo black long sleeve t shirt, the life of pablo i feel like pablo red long sleeve t shirt, Hello, I am very interested in the project and I would like to apply to it. I\ m a web developer with 7 years experience in PHP,, I need a php, python, Ruby developer to create an application in the cloud, i need to write a letter to my friend he passed grade 12 i write a letter to him about my 3rd time failure in grade 10 and my fe, i need graphic designer for my screen printing business in ludhiana, i illustrated my children's book in photoshop, how i bought my skin illustrator palette in the uk, where can i advertise my business for free in south africa, i want to write a letter to my telling him the standard of living in ghana and i want points to write this question, i am three months of visiter in dubai and i need a job my qualification is i com 12 year expirience data entry in pakistan urgen, i am a learner in grade 11 i need help i am worried about my future i want to become a lawyer how can i get a bursary in kzn, i need a spell caster to fix relationship with my husband post comment in united arab emirates facebook site 2015, i need a promoter to sell my dinner show tickets in las vegas, i need a php script for ecurency business, i have a list of 67 eminent medical people involved in sports and i would like their work email addresses they are all speakers , can i hire an attorney to speak with my managers concerning harrassmsnet in the work place, iphone imei check php script, iphone case design php script, iphone login function

İşveren Hakkında:
( 12 değerlendirme ) Milano, Italy

Proje NO: #17150624

Seçilen:

vyasrohan

Hello There, I had read your job description and I know about the problem. There is no problem in your code, Iphone is not allow to save cookie. So you need to change the function from cookie to session in PHP Daha Fazla

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% EUR
(200 Değerlendirme)
7.7

Bu iş için 6 freelancer ortalamada €21 teklif veriyor

trustus

We have a team of Skilled PHP professionals with expertise in Laravel, Codeigniter, Magento, WordPress and other open source packages. We are available from Monday To Friday, 9 hours a day. Our timezone is GMT+5.30. Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(149 Değerlendirme)
7.5
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(25 Değerlendirme)
5.3
yujun21

I have read your full description, which has brought me to have a solution for your project. I have experience in completing a project like your project. I would like to discuss the details through the chart.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(21 Değerlendirme)
4.4
salimmurshed1111

I can solve this issue

in %bids___i_period_sub_35% gün içinde14%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(17 Değerlendirme)
3.5
Arpitbatra123

Hello Sir/Mam. I am a Computer Science Students and I am a passionate software developer. I am aware of all the latest technology trends. I have up to date skills in Latest Technologies and I am eagerly trying to satis Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(0 Değerlendirme)
0.0