Solved

iPhone looses session info

Posted on 2010-11-25
5
21 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Note: This is the third blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   We’ve been talki…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now