Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting cookie of the instagram authorization page in rails application

In my rails application i am using oauth to get access to the user's profile data. The thing is when the instagram's authorization log-in page pops up, the user has to enter his log-in details, a cookie gets saved in my machine. Is there any way to DELETE this cookie(obviously not manually)? I am asking this because when the oauth page is called again, this cookie saved in my browser automatically signs in the user. This has become a nuisance for my project. I don't want this to happen, i want the same log-in page to be displayed again.

like image 369
serpent403 Avatar asked Jan 16 '12 06:01

serpent403


1 Answers

I'm assuming that you are wanting to log the user out of instagram as well as your application. In order to do that you can send their browser to https://instagram.com/accounts/logout/. I've seen it used as a image URL or loaded in a zero size iframe. I suspect the second is the better option.

That way it will required the instagram login again the second time, but won't require them to reauthorize your application.

like image 65
mykel Avatar answered Sep 30 '22 15:09

mykel