php $_SESSION variables using iPad

Do cookies have to be turned on on an iPad to use php sessions variables?

Thanks
Richard KortsBusiness Owner / Chief DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Yes.  The session_id is set in a cookie that needs to be stored in order to recognize the session on that device.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
Dave,

Thanks.

On the Safari settings regarding "Block Cookies", the choices are "Always", "Never" and "From 3rd parties & Advertisers". What is the definition of "3rd Parties"?

Should it just be set to "Never"?

Thanks
0
Dave BaldwinFixer of ProblemsCommented:
3rd parties are like Google Analytics and other tracking and advertising companies.  You should probably select "Never Block Cookies".  But block "From 3rd parties & Advertisers" should also work for sessions since sessions are first party cookies, ones that are set by the web site itself.
0
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
Dave,

Yes I tried it with "From 3rd parties & Advertisers" & it worked on my iPad.

It's funny, I have read that $_SESSION does not use Cookies & I always wondered how otherwise it could work.

Richard
0
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
Dave,

My customer has these settings:

-Always Bock
-Allow from Current Website Only
-Allow from Websites I Visit
-Always Allow

What does "Allow from Current Website Only" mean?

What is the definition of "Current Website"?
0
Dave BaldwinFixer of ProblemsCommented:
Current Website is the one you are currently viewing.  When you are reading this page, it's http://www.experts-exchange.com/ .
It's funny, I have read that $_SESSION does not use Cookies
You are possibly confusing two things.  $_SESSION variables are stored in files on the server but the 'session_id' to identify the session is normally stored in a cookie in the user's browser.
0
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
Dave,

OK, thanks, that makes perfect sense.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
iPad

From novice to tech pro — start learning today.