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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:34:20+00:00 2026-06-11T09:34:20+00:00

I have used sessions in my web app. and I sets up sessions on

  • 0

I have used sessions in my web app.

and I sets up sessions on login with userid.

Sometimes when one user will post their problem using my web application,
than entry will be there with that perticular userid and another entry also be there with any random userid.

So, multiple entries will be there in same table in sql. (this happens randomly)
(this happens – when 2-3 user trying to access same thing)

Sometimes it takes any other / random userid (may be previously logged in user id) and insert data with any userid.

Sometimes one user wants to see log of his activity
so he able to see another users activities or all users activities or his own activities . this one happens randomly too.

please help.

  • 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-11T09:34:21+00:00Added an answer on June 11, 2026 at 9:34 am

    If you want to use session in your asp.net web app, please do not create session using below method.

    Session["username"]=usernametxt.Text;//or assign it from dataset
    

    but use class and functions for creating session, and use get and set method for that.

    set { HttpContext.Current.Session["username"] = value; }
    

    make sure

    this is just as an example.

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

Sidebar

Related Questions

I have a private web app with login requirements. I have seen many sites
I have used some jquery components in my web site, Suddenly i'm getting an
I'm using VS2010,C# to develop an automation site (ASP.NET web app) which may have
I am working on a web application which requires the user to login before
I have inherited a conventional three tier web app with ASP.net 2.0 for the
I have nearly completed the task of overhauling my web app to be properly
I am making a Web app that will be available in free and paid
I have to create a web app that connects to a MySQL DB. I
I'm working on a web app using PHP on Apache. $_SESSION variables are used
I'm designing my own session handler for my web app, the PHP sessions are

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.