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 7796303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:20:04+00:00 2026-06-01T23:20:04+00:00

Sorry for the rather ambiguous title but I’m developing a Sencha Touch mobile app

  • 0

Sorry for the rather ambiguous title but I’m developing a Sencha Touch mobile app and have built a REST-based WCF web service to supply the data and need to find out the best way to handle user logins and keeping their session alive throughout the app.

Now because I’m needing to use JSONP for connecting with the web service this limits the options for authentication and session handling. I could just save the user’s credentials in local storage in the app and pass them with every call the service but this can’t be the best solution. Some have mentioned passing the credentials to a login method on the web service and passing back a sessionid which is then sent with each further call. However I’m not sure how to create the session in the first place using WCF and how to keep it alive using the sessionid passed in.

Can anyone recommend a technique for achieving this?

  • 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-01T23:20:05+00:00Added an answer on June 1, 2026 at 11:20 pm

    jsonp is a great trick to get data from a foreign service. But since you are the owner of the webservice, you could add an Access-Control-Allow-Origin: * header to the http response and switch to ajax mode. Then, you can use the standard authentication procedure.

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

Sidebar

Related Questions

Sorry for the rather vague title, but it seemed befitting of a similarly vague
Hello everybody and sorry for the rather confusing question-title. I have a Hibernate Class
Sorry for long title, the question is rather simple: I have 2 classes, Player
Sorry for the long winded title, but the requirement/problem is rather specific. With reference
I'm sorry about the title. I know it is rather poor but I wasn't
Sorry if this question is too vague, but I'd rather not muddy it's point
Sorry for a long question and not a very descriptive title, but my problem
Sorry for the rather vague title, I couldn't think up a better description for
Sorry for the rather subjective question, but I was hoping to get an opinion
Sorry to be editing this once again, but rather than make another post, I

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.