session-cookies

Rename session cookies in Rails

余生长醉 提交于 2020-05-29 02:30:47
问题 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 do curl -i <appurl> I see set_cookie = _APPNAME_session=.... 回答1: In config/initializers/session_store.rb, set/change the following line: For Rails < 5.0.0: <APPNAME>::Application.config.session_store :cookie_store, key: '_somethingelse_session'

Rename session cookies in Rails

自闭症网瘾萝莉.ら 提交于 2020-05-29 02:30:17
问题 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 do curl -i <appurl> I see set_cookie = _APPNAME_session=.... 回答1: In config/initializers/session_store.rb, set/change the following line: For Rails < 5.0.0: <APPNAME>::Application.config.session_store :cookie_store, key: '_somethingelse_session'

How to tell PHP to use SameSite=None for cross-site cookies?

Deadly 提交于 2020-05-26 12:20:31
问题 According to the article here https://php.watch/articles/PHP-Samesite-cookies and PHP documenation at https://www.php.net/manual/en/session.security.ini.php, There are only 2 possible config options for this new feature, added in PHP 7.3: session.cookie_samesite=Lax session.cookie_samesite=Strict Yet, according to the Chrome console, this needs to be set to "None": A cookie associated with a cross-site resource at URL was set without the SameSite attribute. It has been blocked, as Chrome now

Apollo 2.0.0 Graphql cookie session

冷暖自知 提交于 2020-05-25 06:30:06
问题 Can someone help me on this, My setup was as follows prior to Apollo 2.0, I had a server.js in which i used express and graphql-server-express I had a http only cookie session, when a user logs in I set the jwt token as a cookie and it is set in browser as http only. On subsequent request I validate the cookie that the browser passes back. It was all working fine and I could access the token from req.session.token in any other resolver and validate the jwt token saved in the cookie session.

ASP.NET losing session upon redirection from CCAvenue payment gateway

99封情书 提交于 2020-03-25 19:38:30
问题 I am using ASP.net webforms and successfully integrated the payment gateway. The problem I'm facing is that while I'm posting data to the payment gateway it process the payment and send backs the response to our web application and user gets logged out i.e. because user session getting cleared and sets back to null .I thought this occurs because of HTTP to HTTPS connection as every gateway uses https as a security. and after getting redirected to https it removes all the cookies and session

Validity of HTTP set-cookie header

*爱你&永不变心* 提交于 2020-03-25 16:19:02
问题 I've been focusing on issues relating to cookies. The code below only has line breaks where ; are present to make the header easier to read. Is there any validity issues or other aspects in this header that would throw off Firefox or Chrome for any reason? Set-Cookie: session=cee1226c3221ab3deaf5777102a7657c; expires=Tue, 24-Mar-2020 01:52:24 GMT; Max-Age=3600; path=/; domain=www.example.com; secure; HttpOnly Request is over an HTTPS connection. There is zero intention of allowing clients to

Validity of HTTP set-cookie header

♀尐吖头ヾ 提交于 2020-03-25 16:17:01
问题 I've been focusing on issues relating to cookies. The code below only has line breaks where ; are present to make the header easier to read. Is there any validity issues or other aspects in this header that would throw off Firefox or Chrome for any reason? Set-Cookie: session=cee1226c3221ab3deaf5777102a7657c; expires=Tue, 24-Mar-2020 01:52:24 GMT; Max-Age=3600; path=/; domain=www.example.com; secure; HttpOnly Request is over an HTTPS connection. There is zero intention of allowing clients to

JMeter; session cookie

早过忘川 提交于 2020-03-05 09:52:29
问题 I've seen several JMeter threads that kind of touch on my issue, but none seem to address my specific problem. The problem is - the web-site that I am testing, works like this: A home-page with logon fields, and a submit button. When you first browse to this page in a browser, a PHPSESSID cookie is set (comes down in the Response Header) with a unique Value, to identify the session. When the user clicks on the login button (username and password on this page are irrelevant in the system's

Iframe occasionally loses session cookies

删除回忆录丶 提交于 2020-02-25 06:22:04
问题 Occasionally on submitting a payment form in an iframe, the postback from the payment gateway results in the user being logged out as the request is missing the ASP.NET_SessionId cookie (we are using state-server). It's not the app pool recycling causing the issue as I have checked those logs. It also only happens in the production environment. I can see the session cookie exists just before the form is submitted so I can't figure out where it is losing it. 回答1: You need to check if you are

Postman: How do you delete cookies in the pre-request script?

时光总嘲笑我的痴心妄想 提交于 2020-02-20 06:32:01
问题 All the postman cookie-management answers I've seen refer to either the browser extension (open chrome, delete cookies viz interceptor etc) or with the app, using the UI to manually manage cookies. I would like to delete certain cookies in my pre-request code as part of scripting my API tests. (delete them programmatically) The Sandobx API docs mention pm.cookies so I tried if (pm.cookies !== null) { console.log("cookies!"); console.log(pm.cookies); } But the pm.cookies array is empty. Yet in