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

  • Home
  • SEARCH
  • 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 6905435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:10:59+00:00 2026-05-27T08:10:59+00:00

I have a static HTML page that allows the user to log in and

  • 0

I have a static HTML page that allows the user to log in and then call other web services to update content. The username and password are sent to a WCF REST service via JQuery. The login service looks like this:

[WebInvoke(UriTemplate = "", Method = "POST")]
public bool Login(ServiceUser user)
{
    if(validCredentials(user)){
        FormsAuthentication.SetAuthCookie(user.Username, true);
        return true;
    }
    return false;
}

But before that happens, on page load I call another service to see if the user has already been authenticated. That service looks like this:

[WebGet(UriTemplate = "isAuthenticated")]
public bool IsAuthenticated()
{
    return HttpContext.Current.User.Identity.IsAuthenticated;
}

That way, if they reload the page but have already logged in, I don’t prompt them for their password again.

The problem is that IsAuthenticated doesn’t seem to change it’s value unless I close and reopen the browser. Refreshing the page doesn’t change the value. Am I coding it wrong? Is it caching the value since it’s a WebGet?

  • 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-27T08:10:59+00:00Added an answer on May 27, 2026 at 8:10 am

    Well, I think I was right that WebGet was caching it. I changed the IsAuthenticated service to use [WebInvoke(UriTemplate = “isAuthenticated”, Method = “POST”)] and it appears to be working correctly.

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

Sidebar

Related Questions

I have some static html content (included on a dynamically generated page) that I
I have a web application where the masterPage/template contains some static HTML that never
I have come accross the static HTML app for facebook pages that allows us
I have an html static page as well as a url of html web
I have a jQuery scrollbar in a static html page. The code works fine
I have an e-mail template which is just a plain, static HTML page. I
I have an existing website running on IIS6 that has only static HTML pages.
I have a website that right now, runs by creating static html pages from
I have some static resources (images and HTML files) that will be localized. One
I have an app called static HTML (https://apps.facebook.com/static_html_plus/?ref=ts) installed on a page of mine..

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.