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

The Archive Base Latest Questions

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

I am using FormsAuthentication.SetAuthCookie Method in my application.after Client login i am setting FormsAuthentication.SetAuthCookie(txtUserNo.Text.Trim(),

  • 0

I am using FormsAuthentication.SetAuthCookie Method in my application.after Client login i am setting FormsAuthentication.SetAuthCookie(txtUserNo.Text.Trim(), false);

and in web.config file i set

    <authentication mode="Forms">
        <forms loginUrl="PasswordEntry.aspx" path="/" timeout="1"></forms>
    </authentication>

after 1 minute (Page refreshing) i am getting Administrator data.its not right.Please tell me where the problem is ? and the solution also.

Thanks in advance.
Rakesh.

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

    Disable slidingExpiration which is enabled by default and which renews your authentication ticket for yet another minute at every request:

    <authentication mode="Forms">
        <forms 
            loginUrl="PasswordEntry.aspx" 
            path="/" 
            timeout="1" 
            slidingExpiration="false" />
    </authentication>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In LogIn method I have: FormsAuthentication.SetAuthCookie(model.User, false); and to get name of this user
hi we are using FormsAuthentication.SetAuthCookie(profile.Id, false); Now the question is when does this cookie
I have problem with Uploadify: I log in the project using: FormsAuthentication.SetAuthCookie(myName, false); Then,
Using this code for authentification: HttpContext.Current.User=new GenericPrincipal (new GenericIdentity(user.UserName), roles); FormsAuthentication.SetAuthCookie(user.UserName,false); Problem is -
I have authenticated users to log on my system using this code: FormsAuthentication.SetAuthCookie(user, false);
I'm using FormsAuthentication to allow users to login. However I have a Excel file
For my web app security I'm using FormsAuthentication / MembershipProvider with a non persistant
My asp.net application is not using formsauthentication. Instead we make a call to database,
I am using FormsAuthentication.SetAuthCookie(username, true ); so that a helpdesk person could impersonate another
I am using DotNetOpenAuth to integrate openID in our web application. The code below

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.