Friday 28 September 2012

Re: [dcphp-dev] sessions, iframes, headache

Not really sure, but this may be relevant: http://stackoverflow.com/questions/172223/how-do-i-set-cookies-from-outside-domains-inside-iframes-in-safari

"From visited" is the default cookie policy on iOS Safari. If that's the issue, an OPTIONS request or something akin to a CORS preflight might do it perhaps?

-- 
Dan Drinkard

On Friday, September 28, 2012 at 4:58 PM, Eddie Peloke wrote:

Hello,

I've been banging my head on this issue so am hoping someone can help.  We created an online ordering site for restaurants.  The restaurant adds an iframe on their current website to connect to our site which then pulls in their menu, lets users order, etc.  You can see an example here:


http://stoningtonpizza.com/order_online.html

When that first page is loaded, it grabs the id from the URL and creates a session storing restaurant info.  Once you navigate off the page, the session data is lost and things go awry.  This doesn't happen an all browsers, just a few namely some versions of safari on the iPad and iPod.  I've added all the P3P headers but can't seem to get it to work.

Also, this is running on CodeIgnitor version 1.7 and I've tried replacing the default session handler with native sessions and neither fixed it.

Has anyone experienced this? 


Thanks,
Eddie

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en

0 comments:

Post a Comment