Solved

iPhone looses session info

Posted on 2010-11-25
5
16 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
Comment Utility
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
Comment Utility
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
Comment Utility
need to contact my user to see if cookies are accepted.  will report back.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

15 Experts available now in Live!

Get 1:1 Help Now