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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:50:14+00:00 2026-05-14T18:50:14+00:00

I am building an RESTful API for an application I am working on and

  • 0

I am building an RESTful API for an application I am working on and client coders need to be able to submit data to the API on behalf of a user. All the popular API’s I’ve used require me to send the generated session token (created when a user is logged in) for the user with a request to post information on the users behalf.

My question out of curiosity is why do these API’s require a session key and not just allow me to send the username and password again with each request?

Thanks.

  • 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-14T18:50:15+00:00Added an answer on May 14, 2026 at 6:50 pm

    The main reason is no doubt a security issue around passing sensitive data back and forth. Passing a session key means that if it is compromised it only has a limited lifespan for the attacker to use it. Also, if an attacker compromised the session key, they could not use that information to launch an attack against other websites that the user may have accounts with (and will likely use the same password).

    Another reason to use the session key is that if the user changes their password whilst you are busy using the API’s you will not suddenly be locked out.

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

Sidebar

Related Questions

I'm building Pylons-based web application with RESTful API, which currently lacks any authentication. So
I'm building a RESTful web api with asp.net mvc, which returns pure json data.
I'm building out a RESTful API for an iPhone app. When a user checks-in
I'm building a RESTful API for a project I'm working on and I'd like
I'm building a RESTful API in which the user can issue a query about
I'm building a data exchange server using a REST-like API. It's not strictly RESTful
I'm building a restful API for a php application. At the moment, the API
My organization is working on building RESTful webservices on JBoss appserver. The QA team
I'm in need of some clarification. I've been reading about REST, and building RESTful
I'm building a RESTful API and want to provide developers with the option to

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.