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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:41:46+00:00 2026-05-23T23:41:46+00:00

The set-up: I have an android application that so far can register a user

  • 0

The set-up:
I have an android application that so far can register a user by inserting values into a remote mysql database. I’m now trying to implement the log in.

I was thinking that I can add a “logged in” column to the user table in the database that would store whether or not the user was logged in. Then I would have a trigger that would log the user off after a certain amount of time has been elapsed.

The application’s use is to retrieve files based upon if the user has access to a certain file. For this I have an “access” column in the user table table specifying the access a user has to a certain file. I was thinking that when a user clicks an item in a list the application would send their login information and the server would determine if the information was correct then check to see if they had access to the specified file then send back the file if the information is correct.

The problem I’m having though is that checking the registration information takes about 2 seconds alone(due to connecting to the socket and sending a string over the network) and if I try to check both the login and the access id it would take slightly longer.

I feel as if I’m trying to reinvent the wheel but I can’t find any viable resources on this matter. Criticisms? Suggestions?

(I wouldn’t mind doing a complete redesign I just need to know where to start)

  • 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-05-23T23:41:47+00:00Added an answer on May 23, 2026 at 11:41 pm

    Never connect a client to a db-server. There’s no way to intercept hacking attempts, because privileges are very basic (SELECT, UPDATE, etc., they ignore the query):

    UPDATE users SET name='%s' WHERE userID=%i // where %i will be defined as the real userID
    

    Above should be a valid query to update the user’s account-information, however, a hacker can easily intercept this and change it into:

    UPDATE users SET name='%s' WHERE userID=15 // ... or any other variable
    

    Instead, you should create a web based API which will validate each query, or better, support only specific API-commands:

    account/update.json?name=%s
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TextView in my android application that has a set width on
I have set up a Django application that uses images. I think I have
I have an Android application that generates some HTML which is rendered locally, in
I have several ListActivties set up in my Android Application. What I am trying
I'm working on an application that got an activity that is set to have
I have an android application that gets data from the web such as an
I have a GridView in my Android application that has a number of ImageViews
I'm trying to work out how to organize an android application that will have
After I have set up all the unit test cases for my android application
Here's my problem: I have a button in my android application that when 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.