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

The Archive Base Latest Questions

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

This might be a really ignorant question, but I have a need to create

  • 0

This might be a really ignorant question, but I have a need to create a socket when a person enters my application, use that socket for multiple operations, then dispose of it as soon as the person leaves the page. I would immediately think of using the session array, but I’m not sure that would be the best for performance, but it may be my only option.

Any help would be greatly appreciated. Thanks in advance!

EDIT:
Web Sockets would be ideal, but, correct me if I’m wrong, I don’t own the socket server so I wouldn’t be able to connect directly to it. My main goal is to interact with a proprietary socket server, while keeping the context of the conversation alive (keep the socket open).

I can fit everything in on one page, but need to be able to interact with the user.

  • 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-18T01:26:14+00:00Added an answer on May 18, 2026 at 1:26 am

    If you need to establish a socket connection from the client, you will need to use Web Sockets. These are very new and are only supported in a few browsers.

    If you need to keep a HTTP connection open, you can do that using AJAX, but only as long as the user stays on a single page. You also may have to periodically close the connection and open a new one as many browsers will time out the connection after a short time.

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

Sidebar

Related Questions

So I have kind of a ignorant (maybe?) question. I'm working with writing to
Fairly new to iPhone app development, so this might be really obvious (if so,
I haven't really done a two way binding project before, so this might be
This might come as a strange question to many of you, and I don't
Ok so this might not be the best title but I am struggling with
I really need help on this because I lost my hopes to correct the
I am just learning jquery, so this might be something easy. I am trying
Say I have defined a variable like this (C++): static const char str[] =
I'm trying to figure out how to best lay out a set of Restlet
Dropping of the ereg-functions and their POSIX-regular expression flavor in later PHP versions? After

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.