Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8702647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:42:21+00:00 2026-06-13T02:42:21+00:00

I have an iOS application that connects to a Zend application API. When the

  • 0

I have an iOS application that connects to a Zend application API. When the user is logging in, the url and requests are the following:

url http://www.mydomain.com:82/user/login/user@gmail.com/40.636518/3.632524
<NSMutableURLRequest http://www.mydomain.com:82/user/login/user@gmail.com/40.636518/3.632524>

Where we have user email and latitude and longitude. Also, I send the user password through a parameter:

password=sha1password0123456789&

These are my routes:

routes.userlogin.route = '/user/login/:email/:latitude/:longitude'  
routes.userlogin.defaults.controller = user  
routes.userlogin.defaults.action = login 

And this is the code of the controller:

...
$data = $this->getRequest()->getParams();
/* Here I print the $data object */
...

So, sometimes I’m receiving this as $data (this is OK):

Array(    
    [email] => user@gmail.com    
    [latitude] => 40.636518    
    [longitude] => 3.632524    
    [controller] => user    
    [action] => login    
    [password] => sha1password0123456789)

And some other times, I get this (this makes the login crash):

Array(    
    [controller] => user    
    [action] => login    
    [user@gmail.com] => 40.636301    
    [module] => default    
    [password] => sha1password0123456789)

Am I retrieving the parameters in the right way? The transaction it’s done by POST method and I think I’m running ZendFramework-1.11.11.

EDIT: AFAIK this should not be a problem, but the location in the last crash was different from the request that went ok:

http://www.mydomain.com:82/user/login/user@gmail.com/40.636518/3.632524
vs
http://www.mydomain.com:82/user/login/user@gmail.com/40.636301/3.632206

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:42:23+00:00Added an answer on June 13, 2026 at 2:42 am

    I’ve solved the issue and it was a problem with memcached. My application is currently sharing the same test server with others and it seems that it was crashing because the Zend_Cache was lacking the cache_id_prefix attribute.

    Adding the following line to the AppPlugin.php solved the problem:

    $frontendOpts = array(
                'caching' => true,
                'lifetime' => 1800,
                'automatic_serialization' => true,
                'cache_id_prefix'=>'APPLICATIONNAME_' // This solved the problem
                );
    ....
    $cache = Zend_Cache::factory('Core', 'Memcached', $frontendOpts, $backendOpts);
    

    This line forces all the calls to memcachedfrom APPLICATIONNAME to have an specific prefix and prevents problems between applications living under the same server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an iOS Application that connects to a WebDav server using the ASIHTTPRequest
I have an iOS application that uses GPS for Location Services. A user would
I have an application that is developed for ios lower than ios 5.. it
In my iOS application I have made a form that should submit data into
I have an AIR application that I'm compiling to mobile. There is an iOS
I'm developing an iOS 4 application. I have a main view that contains another
for an iOS 5.0 application using ARC, i have an NSArray of objects that
i have an iOS application witch uses the current location of the user. I
I have an application that is supporting iOS 2.0. The Base SDK is set
I have an iOS application that allows the users to download content and then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.