• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 84
  • Last Modified:

iPhone looses session info

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
MFredin
Asked:
MFredin
1 Solution
 
Bhavesh ShahLead AnalysistCommented:
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
 
SidFishesCommented:
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
 
MFredinAuthor Commented:
need to contact my user to see if cookies are accepted.  will report back.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now