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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:19:33+00:00 2026-06-13T18:19:33+00:00

I am writing a website that very explicitly requires a login wall. Visitors should

  • 0

I am writing a website that very explicitly requires a login wall.

Visitors should be required to log in before they are allowed to view a page.

The page being built depends very much on the user’s “ID”. I am not sure how or where to store the user’s login.

I am not sure whether I should use a session variable (e.g. Session["userId"]), or some other method. The problem I see with session variables is that it’s difficult to time out sessions.

Note: I’m using C# 3.5 with ASP.NET in Visual Studio 2008.

  • 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-13T18:19:35+00:00Added an answer on June 13, 2026 at 6:19 pm

    One of the idea is to use form authentication.

    FormsAuthentication.SetAuthCookie(txtUserName.Text, true);
    Response.Redirect("pagename.aspx");
    

    The true part is that user password is saved to the browser cookie.

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

Sidebar

Related Questions

I'm building a website that requires very basic markup capabilities. I can't use any
I am writing a new website that uses PHP and MySQL. I am trying
I'm writing a website in ASP.NET MVC, using the ASP.NET MVC 1.0 template that
I am writing some code that connects to a website, and using C#, and
I am making a simple website and am writing a gradle build script that
i'm writing a component that is to be used across multiple websites. each website
I am writing to clarify some comments on this website. 1) I know that
Basically, I'm in the process of writing a website that interfaces with many popular
I am writing a very basic website which involves the user to use a
I'm am writing a bit of python code that gets data from a website.

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.