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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:35:09+00:00 2026-05-11T12:35:09+00:00

I note that some sites (such as gmail) allow the user to authenticate over

  • 0

I note that some sites (such as gmail) allow the user to authenticate over https and then switch to http with non-secure cookies for the main use of the site.

How is it possible to have http access to a session but this still be secure? Or is it not secure and hence this is why gmail gives the option to have the entire session secured using https?

Please give an example of how this works and avoids session hijacking attacks, whilst still allowing access to authenticated content over http. I want to be able to implement such a scheme if it’s secure, to avoid having to have a whole site as https for performance reasons.

  • 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. 2026-05-11T12:35:10+00:00Added an answer on May 11, 2026 at 12:35 pm

    As Thilo said, but I’ll explain a little further 🙂

    A webserver is stateless! This is really the problem of the authentication-case. You can’t just log in, and then say ‘from now in, this user is logged in’ – you need some way to identify which user it is that’s requesting a new site this time.

    A common way of doing this is by implementing sessions. If you packet-sniff your network traffic while logging into, and then browsing a site you’ll commonly notice something like this:

    Logging in: You will transmit your username and password to the server. Completely unencrypted! (SSL / HTTPS will encrypt this request for you to avoid man-in-the-middle attacks)

    Response: You will receive a randomly generated string of a lot of weird characters. These will typically be stored in a cookie.

    Request of some site only you should have access to: You will transmit the randomly generated string to the server. The server will look this string up, and see that it’s associated with your session. This allows the server to identify you, and grant you access to your sites.

    .. Now, HTTP in itself is not secure. This means that your password and your session-cookie (the randomly generated string) will be transmitted completely un-encrypted. If someone has access to your traffic (through trojans, router hijacking, whatever), he will be able to see your username / password when you log in, if you’re not using HTTPS. This will grant him access to your site untill you change your password (unless he changes it first 😛 ). In the rest of the requests he will be able to get your session cookie, which means he could steal your identity for the rest of that cookie lifecycle (’till you log out, or the session expires on the server).

    If you want to feel secure, use HTTPS. Realistically though, it’s a lot easier to social engineer a keylogger into your computer than it is to read all your traffic 🙂

    (Or as others have pointed out, use cross-site-scripting to read your session cookie)

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

Sidebar

Ask A Question

Stats

  • Questions 120k
  • Answers 120k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think Maven and Ivy were born to help manage… May 12, 2026 at 12:00 am
  • Editorial Team
    Editorial Team added an answer The term you are looking for is "resampling." It's also… May 12, 2026 at 12:00 am
  • Editorial Team
    Editorial Team added an answer There is no documented way to do this without the… May 12, 2026 at 12:00 am

Related Questions

I am looking for a better solution than what we currently have to deal
Is there a good resource for the rules around how the httpHandler path property
The concept So, I've already made (upgraded actually) this website with its own Content
I can't tell if this is a result of the jQuery I'm using, but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.