Note that there are some explanatory texts on larger screens.

plurals
  1. POSetCookie not working for a specific cookie on Windows Phone
    primarykey
    data
    text
    <p>I have a website that requires a login. The logins are managed by an authentication token that is assigned to the target device (with a few others), but for some reason, its not working on Windows Phone. I have tested it on iPhone and all desktop browsers and it works on all of them.</p> <p>I set it to show me the set cookies, and it is showing all the other cookies that have been set, except for the auth token cookie.</p> <p>I tried changing the cookie name (to see if there was a collision with some redundant code running) but that didn't work (still working on desktop browsers).</p> <p>I had placed a piece of code to detect the setcookie function call, which told me it was being called correctly. In the same code path of the login and setcookie I did a var_dump of the $_COOKIE then too and it showed that the token had been temporarily sent.</p> <p>The code does contain the ability to detect a mobile browser, but it is unused (outside of a few small parts of the template engine).</p> <p>An additional note about the code is that from the start, right up till the end, the output buffer is enabled, and only printed at the end of the code.</p> <p>What else can I do to try to find the cause of the problem, or what could be causing the problem specifically for Windows Phone.</p> <p><strong>EDIT</strong></p> <p>I have just tested it on an iPad, and it is also not working. Very strange as it works on normal iPhones and the Safari browser.</p> <p><strong>EDIT</strong></p> <p>I have installed a server (AMPPS) on a computer on my LAN running the site (with the same db) and the login function works correctly.</p> <p>In addition, during my tests, on the mobile (on the live version), the user is redirected to the users only page, but the cookie is not detected, and the user is returned to the sign in page. Other cookies are, but the auth token is not.</p> <p>All of the cookies are set in the same way, with an expiry of time() + 3600, and the path set to '/'</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload