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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:19:58+00:00 2026-05-21T11:19:58+00:00

1) re-login in asp.net In my application,I do not want two user login with

  • 0

1) re-login in asp.net

In my application,I do not want two user login with the same login name.

For example, user1 login with name “test1”,then user2 try to login with “test1” too,but at this moment the user1’s session does not expire,so the login of user2 should be denied.

No my question is how to check if the user1’s session is expire or not when user2 try to login?

2)the timeout property of formauthentication VS seesionstate

what is the difference?
I have googled,but I am not sure how to use them.

it seems that the session have some realationship with the cookie,so when a session come to the server side,sometime we have to check if this session is a new session or not,I wonder when we have to check this?

3) Global.asax

There is a method:

Application_Start(object sender, EventArgs e)

What does the application start mean? the iis?

  • 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-21T11:19:59+00:00Added an answer on May 21, 2026 at 11:19 am

    To get all user session here is a tutorial with code.

    http://weblogs.asp.net/imranbaloch/archive/2010/04/05/reading-all-users-session.aspx

    formauthentication VS seesionstate

    I think that this is very clear, you have 2 different variables. The formauthentication says how many times keeps you login, and the sessionstate says how many times keeps your session data. The asp.net keeps 2 different cookies to connect a user with the authentication and with the session and the expires is referred to this cookies on the user computer.

    it seems that the session have some
    realationship with the cookie

    Of cource he has, how else the server can make relation of the session data with the specific user ? using cookies. You need to check for new session every time the session is null !

    The

    Application_Start(object sender, EventArgs e)
    

    fires when your application starts.

    For example, when you open the appoffline.htm, your app stops, when you close it your app starts again, when the pool of your application make a restart because of the settings, when you upload new files and your applications make a restart for after the compile, and when you make a restart from iis, and of course when you restart your iis, or when you computers boot.

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

Sidebar

Related Questions

i want a facility that if user login then goes to home/index i not
I'm using the ASP.Net Login control to login a web application. When the user
I want to expire my login cookie whenever the LoginView in my asp.net application
I am using a asp.net login control with one of my asp.net application to
I have an ASP.NET Login Application. When login is successful, my application creates a
Single Application Page Asp.net MVC 4 temlplate uses default database to check Login and
I've built a custom login system for my asp.net mvc 1.0 web application as
I have a sample ASP.NET application. The appliaction was developed as POC and not
I am developing a large asp.net based application. Certain pages & links require user
we have asp.net web application and we need to support automatic login using domain

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.