Solved

iPhone looses session info

Posted on 2010-11-25
5
42 Views
Last Modified: 2016-05-09
I'm using session variables to check and see if a user is logged in or not.  

When a user logs in, I use: <cfset session.user_id = X?>  
Then on my pages I'll use: <cfif isdefined("session.user_id") and session.user_id neq "">User is logged in</cfif>

Works great for my users but I have a user with an iPhone that can't seem to hold the session info.  Immediately after logging in, he loses the session info and is required to login again.  

Anybody have any ideas why this might be happening?  I'm not sure yet if its my site or his phone.
0
Comment
Question by:MFredin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 34221582
Hi,

when you said, works great fore my users means its working in client machine.

did you tried with other phone??

I dont think there should be any problem !!!
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 500 total points
ID: 34232663
could be the iPhone is set not to accept cookies in Settings > Safari

One way around this


"ColdFusion provides the URLSessionFormat function, which does the following:

    * If the client does not accept cookies, automatically appends all required client identification information to a URL.
    * If the client accepts cookies, does not append the information.
"

http://livedocs.adobe.com/coldfusion/8/htmldocs/sharedVars_05.html

0
 

Author Comment

by:MFredin
ID: 34356560
need to contact my user to see if cookies are accepted.  will report back.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The release of the iPhone 6 and iPhone 6 Plus was a complete game changer for Apple. Steve Jobs had even showed his distaste for larger phones, calling them “Hummers”. But to compete with larger smartphones, Apple finally introduced the iPhone 6 wit…
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question