Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
639 views
in Technique[技术] by (71.8m points)

session - Missing cookies on iframe in safari 5.1.5

This is for Safari 5.1.4 and 5.1.5 only. It works on older Safari versions.

if you go to: http://gemal.dk/test/restob.html and click on the button you get a Online Booking inside a iframe

If you the click on a green day and then a time you are presented with a "Your session has expired".

If you check the cookies you dont have any cookies.

Safari is rejecting the session cookies and this started around the Safari/Google issue where Safari became more strict about 3rd party cookies. Version 5.1.4+

How can I solve this? How can I set the cookies in the iframe?

I send the correct P3P headers. I've tried a lot of things I just cant get it working.

It works in all other browsers than Safari 5.1.4+

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Maybe ,The following link would be helpful to you .

http://www.reizbombardement.de/archives/safari-5-1-4-enforces-cookie-policy

Safari 3rd party cookie iframe trick no longer working?

Certainly, To set a cookie for your domain and refresh the opener and then closes, you must prepare dummy page(ex...safari_cookie_fix.php)

But... In Our project , We prepare its dummy page as Good-looking(Not bad usability!) loading page.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...