php $_SESSION variables using iPad

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

Thanks
Richard KortsAsked:
Who is Participating?
 
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
 
Richard KortsAuthor 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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Richard KortsAuthor 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 KortsAuthor 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 KortsAuthor Commented:
Dave,

OK, thanks, that makes perfect sense.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.