Jump to content

Why Oauth(User Credentials)? Isn't PHP Session enought?


Recommended Posts

Hi.

 

After looking how oauth 2.0(User Credentials) works, why i use this if i have to put the access_token variable in a cookie of a session i have to start, lol!

Oauth User Credentials was supposed to do the job of session, but if i have to start a session for this it makes no sense...

Forget about the 3rd part application, i am discussing the need of session creation in oauth 2.0.

Also, to use Oauth, an https(secure) connection is hightly recommended.

Oauth should be used for json responses only?

Link to comment
Share on other sites

Because that token is your key to their information, their profile, their demographics; everything you need to keep up with your incoming traffic without the hassle of storing it yourself. Storing a session is easy. Getting users to create an account on your site; not so much. User friendless is key to a successful website, otherwise it's like one of those extremely complicated adding machines from the 20's, with liquid based atticuses and hand-carved wooden levers and gears.

 

There's is no substitute for a $_SESSION, it has one purpose in life, and that is to remain accessible until the site and browser sessions are terminated.

Link to comment
Share on other sites

ZANE SAID:

  "Because that token is your key to their information, their profile, their demographics; everything you need to keep up with your incoming traffic without the hassle of storing it yourself."

 

OK, but that case is when you make 3rd part applications available in your site, not when you use only user credentials.

I am asking what is the advantage of using "user credentials" instead of $_SESSION.

The user credentials receive a Username and Password, then return a token in json. Then, you have to send the token back to the server to continue to be "recognized", and what is the diference of sending him a SESSION_ID?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.