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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:43:14+00:00 2026-06-11T14:43:14+00:00

I have a website, its completely over HTTPS. Even if someone tries to access

  • 0

I have a website, its completely over HTTPS. Even if someone tries to access over HTTP he will be redirected to HTTPS. I am using forms authentication. Recently I changed a setting to make the site more secure and after that Session is not retaining values and is always returning null. The settings are,

<httpCookies httpOnlyCookies="true" requireSSL="true"/>
<sessionState cookieless="false"/>

I have no idea on how to fix this issue. How do I fix this issue? Also, is my site vulnerable if I do not use this setting? consider that everything else is secure.

  • 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-11T14:43:15+00:00Added an answer on June 11, 2026 at 2:43 pm

    You question is too general with out many clues, so I can give you some points to move on.

    [1] set also the domain on the cookies, with out the www., so the cookie can be read and set even if by mistake the www is missing.

    <httpCookies domain="yourdomain.com" httpOnlyCookies="true" requireSSL="true"/>
    

    [2] you also need to setup the <forms... with similar parameters (and what ever else you have set)

    <forms name=".klidi" path="/" requireSSL="true" cookieless="UseCookies" 
       domain="yourdomain.com" enableCrossAppRedirects="false" 
            slidingExpiration="true" />
    

    [3] you also need to setup the <roleManager with similar parameters.

    <roleManager enabled="true" cacheRolesInCookie="false" cookieProtection="All" cookieSlidingExpiration="true" 
               cookieTimeout="20" domain="yourdomain.com" cookieRequireSSL="true">
    

    and last the most important set this line on your code before you try to set or use any cookie to see if by mistake you did not use secure connection https.

    Debug.Assert(HttpContext.Current.Request.IsSecureConnection, "With out https, cookie will not work");
    

    By setting the last line, on your computer when you make your site you can see and diagnose if the problem is coming from non secure connection, because from the moment you set the requireSSL to true, any simple connection will not hold any cookie.

    Also try to clear your cookies in the case that the cookie exist as non secure and you have any conflict, and or try other browsers.

    You can also read: Can some hacker steal the cookie from a user and login with that name on a web site?

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

Sidebar

Related Questions

I have made a website using( Asp.net, c# ) and its content in English
I have a website that uses JSP as its view technology (and Spring MVC
I have a website which checks users IP and if its from CA displays
i have a website that is being hosted on www.webhost4life.com. Its a basic asp.net
For example, I have a website which has a dynamically-generated segment of its dom
I have a WordPress website that needs to have its articles in multiple languages.
I have embedded a Google Map in my website. I want to change its
I have an old website that hasn't gotten much love over the years and
I have this website am designing, i tried using mootools 1.31 to animate some
I have an ASP.NET website and over time it has become more and more

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.