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

  • SEARCH
  • Home
  • 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 484829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:20:23+00:00 2026-05-13T01:20:23+00:00

My site is in flash. The login is also in flash. This is the

  • 0

My site is in flash. The login is also in flash. This is the login flow:

  1. Enter username and password

  2. Send to authentication.php page

  3. Here is my doubt on authentication.php page:

    (1) Check the post parameters, i.e username and password

    (2) Sha/hash the password

    (3) Q1(query 1), select username and password from users table

    (4) If matched, do another query(Q2), check if the user is still on ban status

    (5) If user is not in ban status, do a query (Q3) to check if the user is first log for today

    (6) If its first log, do update query (Q4) to rewards some money to the user

    (7) Create session, userid, a hashed session variable using md5. i.e

    $_SESSION[‘loggin’] = 1;

    $_SESSION[‘hash’] = md5(username.secret);

    (I use the $_SESSION[‘hash’] for another authentication in another page, just ignore this)

  4. Return result to flash.

I know its a very bad login flow, alots of mysql queries, 2 hashing(php calculations). I am still thinking/looking for a better way for this. Like combining the query etc. Any ideas on how to improve the flow?? (I must meet all the stuff i mentioned above)

[The current login is slow]

  • 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-13T01:20:23+00:00Added an answer on May 13, 2026 at 1:20 am

    To get a more abstract view of the problem the answers to the following questions would help:

    • What environment are you developing in? 100% Locally (local code and Db or local code and external Db? etc)?
    • Is this all 100% ‘fresh’ code, have you developed anything similar and not had these issues?

    On a side note I use Chromes builtin resource monitor which shows the breakdown of a web pages size and time it took to download. I find this more useful than the one in FireFox/FireBug.

    Have you tested each of your queries in something like PHPMyAdmin or similar to test query time? Add up the total time of each query and see what the difference is.

    Good luck,
    Alex

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

Sidebar

Related Questions

Has anyone here created a Flash site or application that is ADA (Section 508)
We are considering migrating our site from flash to silverlight, and also building additional
Okay, so, here's what the problem is. I'm creating a flash site with each
I have a site with a flash SWF on the home page. I have
I'm getting this error upon trying to login/register on my gitorious server: The site
Is it possible to set the Basic Authentication username and password from a server
i'm trying to login to Flash Site using ASP.NET C# httprequest.... i use Firebug
Sorry this bad question but i must ask. I've got a flash site (I
i'm testing a flash site with Charles Proxy. It doesn't appear to be throttling
I am creating a site in flash that is reading in entries from a

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.