Questions tagged [session-cookies]

Session cookies enable a server and a browser to establish an identified connection (through cookies) and communicate though it.

Session cookies are temporary files that exist for a particular user for a pre-defined duration. Once this duration is expired, the session cookies are erased.

Session cookies allow a website to keep a state or memory of the visitor as they navigate between pages of the website.

4816 questions
8
votes
1 answer

Delete Session Cookies Across Multiple Subdomains in Rails 3

I'm building a rails app that works similar to Wufoo. When you sign up you get a subdomain, and you can log in on the home page. The app is working, so that when you log in, you get redirected to your subdomain. The problem is that I can't delete…
Baylor Rae'
  • 3,995
  • 20
  • 39
8
votes
1 answer

Converting a curl to PowerShell Invoke-WebRequest

I am trying to convert these two curl commands. I am just unsure on outputing the verbose. And if my cookie needs I2KBRCK=1. And how to do a header dump. %CURL_FOLDER%\curl --verbose --insecure --cookie-jar %OUTPUT_FOLDER%\cookiejar.txt --cookie…
8
votes
0 answers

OAuth2 Implicit flow vs 'Traditional' session based auth for small SPA

Some background: I am writing a small SPA that will use a back end that I have also written. The JS and the back end API are on the same server. i.e. SPA will load from foo.com, back end is at foo.com/api In the past I have always used Spring…
8
votes
1 answer

Setting request cookies angular2 http post request

I have a login service that performs an http request (to a php backend server) and returns a cookie. After login this cookie is needs to be used in all further requests done by the client. loginservice: …
Maniac_1979
  • 879
  • 3
  • 10
  • 26
8
votes
3 answers

How to set and get JSESSIONID cookie in VBA?

I'm writing a VBA web service client in Excel 2010 using MSXML2.XMLHTTP60 for my Java REST web services hosted on Tomcat 8.5.5. In VBA, I want to snag the string JSESSIONID=E4E7666024C56427645D65BEB49ADC11 from a response and set it in a subsequent…
Tamara Aviv
  • 885
  • 1
  • 11
  • 28
8
votes
1 answer

PHP cURL missing some of the response cookies

I am trying to scrape a shopping cart which uses the cookies for different currencies. When I load the site in chrome browser and inspecting with Cookie Inspector for Chrome, it shows the following cookies. When I try loading the same link with…
dharanbro
  • 1,327
  • 4
  • 17
  • 40
8
votes
1 answer

Detect if page was redirected or loaded directly(Javascript)

Currently, I want to display a label on the first page of my site a user visits. To make it simple, say I only care about page1.html and page2.html. Is it possible to check if the user was redirected from page1.html to page2.html?(Perhaps with…
mancestr
  • 969
  • 3
  • 13
  • 34
8
votes
1 answer

My Laravel 5.2.10 Sessions wont persist

I have a brand new installation of Laravel 5, in fact I have tried this on multiple versions and keep hitting the same issue. I have not changed anything from the default except setting the session driver to redis. (File based also has the same…
Jon Taylor
  • 7,865
  • 5
  • 30
  • 55
8
votes
6 answers

cannot find module 'cookie' while using the express module

I need your help on building rest API using express.. I have tried many versions of express. that also have CookieParser middleware but I'm just getting the above error... Error: Cannot find module 'cookie' at Function.Module._resolveFilename…
goldsoft25
  • 140
  • 1
  • 2
  • 10
8
votes
1 answer

How to set the expiration time for a cookie managed by Plack::Middleware::Session?

Now my app.psgi contains (simplified): builder { enable 'Session', store => 'File'; #default uses Plack::Session::State::Cookie $app; }; Later, in the $app I'm using: my $req = Plack::Request->new($env); my $session = $req->session();…
kobame
  • 5,766
  • 3
  • 31
  • 62
8
votes
4 answers

Should session ID cookie be signed?

I was using the Node library https://github.com/expressjs/session and noticed that it requires a secret to be specified for signing the session ID cookie. If just the session ID is being stored in the cookie, and not any data, what is the use in…
countunique
  • 4,068
  • 6
  • 26
  • 35
8
votes
1 answer

Failed Integration Test of the “remember me” Checkbox

I am following railstutorial.org 3rd Edition and I am currently working on Chapter 8: Log in, log out. I found an issue in Listing 8.51 (login without remembering test): assert_nil cookies['remember_token'] When I execute: rake test, it's return…
8
votes
1 answer

Set cookie (with JS) for whole domain not specific page

I have a simple little script which I am using to set a cookie: function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+d.toUTCString(); …
Sheixt
  • 2,546
  • 12
  • 36
  • 65
8
votes
4 answers

Sails.js authorization for socket requests

I'm trying to build a chat application based on sails.js. The url for messages from a specific chat looks like this: /api/chat/:id/messages When I request this url with XHR, it provides a session cookie and sails.js builds a session object. I can…
alevkon
  • 327
  • 4
  • 13
8
votes
4 answers

Why would Laravel Sessions fail in just Safari and IE after switching server?

New VPS server with Webmin, Apache Centos 6, Laravel application and old database schema. All working fine on old shared host, but on VPS for some reason Laravel's Session storage (Laravel 3.0) is no longer working on Safari or Internet Explorer.…
Browno
  • 81
  • 1
  • 4