session-cookies

How to do stateless (session-less) & cookie-less authentication?

非 Y 不嫁゛ 提交于 2020-01-18 11:10:08
问题 Bob uses a web application in order to achieve something. And: His browser is on diet, therefore it does not support cookies . The web application is a popular one, it deals with a lot of users at a given moment - it has to scale well. As long as keeping session would impose a limit to the number of simultaneous connections , and, of course, will bring a non-negligible performance penalty , we might like to have a session-less system :) Some important notes: we do have transport security (

How to do stateless (session-less) & cookie-less authentication?

时间秒杀一切 提交于 2020-01-18 11:09:04
问题 Bob uses a web application in order to achieve something. And: His browser is on diet, therefore it does not support cookies . The web application is a popular one, it deals with a lot of users at a given moment - it has to scale well. As long as keeping session would impose a limit to the number of simultaneous connections , and, of course, will bring a non-negligible performance penalty , we might like to have a session-less system :) Some important notes: we do have transport security (

WkWebView sometimes loses the session variable

冷暖自知 提交于 2020-01-16 19:31:27
问题 I have a Ruby on Rails backend web application. I use iOS application as a web client (WKWebView) written in swift. The authentication token is stored as a session cookies variable on the backend: session['token'] = generate_token The problem is that accidentally this session variable is lost and the flow is redirected to login page. The WKWebView is not closed, just used to process HTTP requests. I'm not able to figure out, why this accidentally happens. 回答1: Since you are using just a

Technical difference between session and token based auth

爷,独闯天下 提交于 2020-01-15 07:21:29
问题 Im writing my bachelors in which i need to figure out which authentication/authorization method fits best with the company i'm collaborating with. So i've been comparing the session and token based auth methods but there are a few points that are unclear to me about how tokens work and how they are better than session authentication: The only benefits that are 100% clear to me are that tokens can be used from clients that doesn't have a cookie store and that they can be used with different

Disable Cookies in Rails 3.x app

帅比萌擦擦* 提交于 2020-01-15 01:24:13
问题 Is there a way to disable all cookies for a Rails app? Or preferably on a controller by controller basis? My problem is regarding access of a Rails JSON api by an Adobe Lightroom plugin. Apparently the presence of any cookie data in the response from the server causes an error in Lightroom. 回答1: In the controller you want to avoid cookies, add this: after_filter :skip_set_cookies_header def skip_set_cookies_header request.session_options = {} end If you have a set of api controllers, set this

Cookie security when passed over SSL

…衆ロ難τιáo~ 提交于 2020-01-14 09:36:07
问题 Am I correct in thinking that if you pass a session cookie over an SSL encrypted request that the cookie could only be read by an attacker who had direct access to the computer that the cookie had been sent to, or the server it has been sent from, provided they are unable to crack the encryption? 回答1: SSL encrypts all traffic, including the header (which contains the cookie value). On the other hand, the cookie can be accessed via Javascript on the client machine, unless you have marked it as

Android to Drupal cookie transfer Q2

…衆ロ難τιáo~ 提交于 2020-01-14 03:37:08
问题 Previously I asked a question at Android to Drupal cookie transfer about sending cookies from my Android app back to my Drupal website to which I got a very good answer. The entire idea is to enable a persistent Client-Server interaction. I adjusted my code as was directed but I still can not get things working right. My code adjustments are below: protected Void doInBackground(Void... params) { // TODO Auto-generated method stub HttpResponse response; HttpClient httpClient = new

Is a PHP Session acceptable with the new UK cookie law?

蹲街弑〆低调 提交于 2020-01-13 07:47:12
问题 I am just looking for some advice on the new UK Cookie Law and how it affects PHP sessions. I understand that you do not need the users to opt in when a cookie is "strictly necessary" and the example given is adding an item to a shopping cart. I am using similar functionality that remembers what you have stored in a contact form, which I feel is strictly necessary use of a session and therefore no opt in is required. However the confusion for me arises because I have a session_start(); at the

express cookie return undefined

左心房为你撑大大i 提交于 2020-01-13 03:11:08
问题 I'm trying to set cookie on express.js but it return undefined. I've searched many web pages and put express.cookieParser() above app.use(app.router) but it still can't return the right value. app.js app.configure(function(){ var RedisStore = require('connect-redis')(express); app.use(express.logger()); app.set('view options', { layout: false }); app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.bodyParser({uploadDir: './uploads/tmp'})); app.use(express

What means “secure” parameter for session_set_cookie_params() function? [duplicate]

瘦欲@ 提交于 2020-01-11 11:09:15
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: PHP session_set_cookie_params I am using only HTTP (not HTTPS, SSL is not configured on my server). Does "secure" mean that cookies will be transfered only via SSL? Or it is possible to use this parameter with HTTP too? 回答1: It means the browser will only send the cookie when the current connection is encrypted (SSL/TLS). You only use it with an encrypted connection. http://php.net/manual/en/session