Jump to content

Recommended Posts

Hi Guys,

 

I've got a login script that works fine on my desktop browsers and android phone but it does not work on iOS.  More specifically, the session variables are not saved.  All of my pages after the login script start with:

if(!session_id()) session_start();

When I echo the variables on the page, they are empty when using iOS.  Any ideas would be greatly appreciated!

 

Thanks,

John

Link to comment
https://forums.phpfreaks.com/topic/266795-problems-with-ios-and-sessions/
Share on other sites

Thanks Porl, I'll give that a try.  It gets more peculiar.  I've tested this on three iOS devices.  It works on my fiance's iPhone, but not on the other two.  iOS version is the same I believe.  Maybe there is a setting?  IDK, I'm an android guy myself.  I'll tinker and see what I can find out.

 

 

I'm just splitballing here, but you could try:

 

if(session_id() == "") 

 

or

 

if(!isset($_SESSION)) session_start();

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.