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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:31:10+00:00 2026-06-10T05:31:10+00:00

I use user IP to find his location for displaying the correct content in

  • 0

I use user IP to find his location for displaying the correct content in my ASP.NET website. I set a session at the start of my default.aspx page to detect whether it is the first time my user runs website or not, if it is the first time, my location detection algorithm runs and city session is set as well. My users can change city and each time they change city, the city session is changed also. This process works fine, but when user closes his browser, and again opens browser my city detection algorithm doesn’t run because my session["firsttime"] is still active and its value is TRUE (my session lifetime is set to its default 20 minutes). How can I detect that user has just started his browser even if he has a session["firsttime"] set to TRUE?

Can I do it using global.asax file?

  • 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-10T05:31:12+00:00Added an answer on June 10, 2026 at 5:31 am

    Try using cookies instead of Session to detect the “first time” & “returning user”. Also, you can set the Location Info in cookie.

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

Sidebar

Related Questions

To create a new user I use a search view to find user info
I would like to find a way to use custom User provider within a
I am trying to find a good pattern to use for user access validation.
I have to use the EXEC family to find the process owned (the user)
I have a VB.NET form that contains textboxes for the user to enter his
We have to build an event registration website for our client in ASP.NET using
Is there a way to use user's culture to localize the Range Validator for
Could someone post a link to simple tutorial, which describe how to use User
Use case: user clicks the link on a webpage - boom! load of files
I want to use a user inputed name in the form of an NSString

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.