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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:02:27+00:00 2026-06-04T19:02:27+00:00

Currently, my game works like this. The user connects to the server using TCP.

  • 0

Currently, my game works like this.

The user connects to the server using TCP.
At this point, the server has not allocated a player object and assigned it to the TCP client object.

When the user sends a LOGIN message with their username and password hash, the server checks the database to see if that all adds up and if it does it sends a LOGIN_ATTEMPT_RESULT message with true. The server then allocates a player then sends the player a state of the lobby and from then on, when the server gets a message from that user, it processes it and they communicate.

I don’t keep a session id or anything since it does not seem necessary.

Is this basically how a game like this would do authentication and communication or am I missing something important?

Thanks

  • 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-04T19:02:28+00:00Added an answer on June 4, 2026 at 7:02 pm

    Keeping a session ID is nice because it makes TCP packet injection attacks (sequence guessing) harder, and it allows continuity of login even if the TCP connection is lost for some reason. This way, a “session” and a “connection” are distinct and the latter can be reestablished as needed. Also, if you expand to multiple machines, the session ID can be used as a means of passing between hosts (the connection would be recreated but the session persists). Finally, a session ID can be used as a database key (again, for passing between servers).

    If you need none of this, then you can ditch the session layer. Doesn’t seem like much of a savings, though.

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

Sidebar

Related Questions

I am working on a game that has destructible terrain (like in the game
I'm trying to make a Tetris-like game in XNA, and currently I'm thinking of
Say I'd like to make a memory/pairs game. I have currently made a draft
I have profile pages for users of my little card game, like this one
I am creating a CGPath to define an area in my game like this:
I'm currently using AMFPHP 1.9 to make a simple flash game which uses a
I am currently making an Jeopardy game on the topic of HTML using jQuery.
I'm currently building a tool for my game engine using WPF. The tool is
I'm developing a 2D game for the iPhone using OpenGL ES and I'd like
I am creating a game currently and I want users to be able to

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.