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
2 answers

Alternative to cookie based session/authentication

Is there an alternative to the session feature plugin in servicestack? In some scenarios I cannot use cookies to match the authorized session in my service implementation. Is there a possibility to resolve the session using a token in http header of…
crazyRaisy
  • 121
  • 1
  • 7
8
votes
3 answers

Constant Flask Session IDs

I've a Flask application, served with Nginx+WSGI (FastCGI & Gevent) and use standard Flask sessions. I do not use the session.permanent=True or any other extra option, but simply set SECRET_KEY in the default configuration. I do not save any…
hsk81
  • 792
  • 8
  • 15
8
votes
4 answers

Cookies not setting in Safari 6

Good evening, I've asked this question a couple of times without responses, hope this time goes well. I've been developing facebook apps for a couple of years now, using php and the Facebook PHP SDK. Lately I've been struggling with Safari and the…
chuysbz
  • 1,262
  • 6
  • 18
  • 47
8
votes
1 answer

What is the difference between a Cookie and Redis Session store?

I want to share sessions among 2 applications on different nodes; however, I am confused what the difference is between Cookie and Redis session stores; e.g. a cookie session might look like…
poseid
  • 6,986
  • 10
  • 48
  • 78
8
votes
2 answers

Why do some Flask session values disappear from the session after closing the browser window, but then reappear later without me adding them?

So my understanding of Flask sessions is that I can use it like a dictionary and add values to a session by doing: session['key name'] = 'some value here' And that works fine. On a route I have the client call using AJAX post, I assign a value to…
Ben
  • 2,143
  • 2
  • 19
  • 27
8
votes
1 answer

Rename session cookies in Rails

since I'd like the session cookie to reflect the url and not the app name, I'd like to rename the cookies.. The current session cookie name is called _APPNAME_session is there a way to rename it to _somethingelse_session? I see the name of it when I…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
8
votes
2 answers

SessionSecurityTokenHandler trying to decrypt SessionSecurityToken in RSA-encrypted cookie using DPAPI; why?

I have read in MSDN forums, Dominic Baier's blog, and in other sources that DPAPI will not work out-of-the box in Azure, and that one approach to handling federated authentication in any kind of web farm scenario is to replace the DPAPI transforms…
Ben Collins
  • 20,538
  • 18
  • 127
  • 187
8
votes
2 answers

Suppressing auto-creation of sessions in RoR, for the glory of Europe

I'm new to Ruby on Rails but it seems it creates a new session every time a new user visits the website. The problem is, creating a session involves placing a cookie on the user's browser and the problem with that is that cookies are illegal in…
lampak
  • 890
  • 1
  • 9
  • 21
8
votes
3 answers

Is it possible to manually end a Google Analytics Session?

I would like to divide the traffic between registered and unregistered users with a custom variable. The Analytics documentation suggests to use a session-level custom variable for this purpose. However, what is very common for our users is to log…
user1551278
  • 81
  • 1
  • 2
8
votes
3 answers

MVC 3 / Jquery AJAX / Session Expires / C# - Handling session timeout durng ajax call

I have an ajax call to MVC which returns a partialview. This is all fine until the session ends or the cookie expires. When I make the ajax call it displays the content inside a div that was meant to be for the partialview. How can I detect that my…
Arcadian
  • 4,312
  • 12
  • 64
  • 107
7
votes
1 answer

My cookies are only available on PHP pages they are set on, is this normal?

I cannot access cookies from any page other than the page they are set on. I looked at print_r($_COOKIE) on different pages and the only common variable between pages is the $_COOKIE['PHPSESSID']. I am developing on a local XAMPP testing server. Is…
Jiminy Cricket
  • 908
  • 1
  • 9
  • 24
7
votes
1 answer

http-conduit browser usage

I'm trying to scrape data from a site using HTTPS. I managed to make basic requests using Network.HTTP.Conduit successfully (posting credentials, etc.), but failed at extracting cookie information from the response headers (Set-Cookie). It looks…
akosch
  • 4,326
  • 7
  • 59
  • 80
7
votes
3 answers

$_SESSION created but theres no PHPSESSID in $_SERVER['HTTP_COOKIE']

I'm experiencing some weird problems with SESSION variables on my PHP/Ajax online shopping cart. When I first view the page, the SESSION is created and works within the page. Then when I navigate to another PHP page within the same directory the…
unsunghero
  • 971
  • 1
  • 10
  • 22
7
votes
1 answer

Node.js/Express.js session management cookie to be session cookie

How can I make the connect.sid cookie itself only a session cookie instead of a persistent one? I unsuccessfully tried app.use(express.session({cookie: { path: '/', httpOnly: true}, secret:'eeuqram'})); But the cookie still had the expiration…
Ustaman Sangat
  • 1,505
  • 1
  • 14
  • 26
7
votes
2 answers

Few questions about PHP sessions

I have a few a few question about php sessions: Since the default value for session.gc_maxlifetime is 24 mins then that means any session file that isn't modified for 24 mins will be deleted and the session will expire automatically. If I use…
Songo
  • 5,618
  • 8
  • 58
  • 96