session-cookies

Weird Session Behavior - session dissappearing

别说谁变了你拦得住时间么 提交于 2019-12-11 20:18:07
问题 I am experiencing a very weird behavior with PHP and session. The script that I am using has been working for months and it is working on various servers with various PHP versions. the script read the URL and re-route depending on the URL, for example hitting /offer/abc1234.html it will call the class offer and pass abc1234 as parameter. I have created a "failover" class that in other words if you write /abc1234.html it will test various database entries and if it finds one automatically

Windows phone 8.1 httpClient and session cookies

半腔热情 提交于 2019-12-11 20:17:33
问题 Does httpClient store and resend session cookies? Because using PostAsync I am connecting to (and debugging) a server and after login when I check my status the sessions doesn't exists. And if it is true, how can I say to HttpClient to use cookies? I have been looking for this question and I am only finding people asking how to manipulate cookies, I only want to mantain session cookies. Thank you. The code I use HttpClient httpClient = new HttpClient(); HttpResponseMessage httpResp = await

Possible to reset sessions for all users?

笑着哭i 提交于 2019-12-11 19:57:53
问题 Due to change in authentication procedure I need to reset all sessions for all users, how do I do this in Rails 4? 回答1: You can change the secret_key your app uses to encrypt cookies in config/initializers/secret_token.rb or you can change the name of the cookie key in config/initializers/session_store.rb either of these changes will invalidate all sessions and require them to be recreated (login again) 来源: https://stackoverflow.com/questions/21467181/possible-to-reset-sessions-for-all-users

SID (session id ) changed when call new API

蓝咒 提交于 2019-12-11 18:45:06
问题 I would like to save the login session as I switch between several windows Here is my authentication code: PROCÉDURE connexion() MyErreur est un booléen :MaRequeteConnexion..Entête["Content-type"] = "application/json" :MaRequeteConnexion..URL = "http://"+:p_ipserveur+"/web/session/authenticate" :MaRequeteConnexion..Méthode =httpPost :demande_connexion.params.db = "Mydatabase" :demande_connexion.params.login ="test" :demande_connexion.params.password = "test" :MaRequeteConnexion.Contenu =

Paypal payment destroys Session on “Return”

孤人 提交于 2019-12-11 15:47:50
问题 This question has been asked before. But, I am still unable to find a solution. I have integrated Paypal Payment into my website. I created and installed the "Payment Button" (the HTML code), and it works perfectly. The problem, however, is that : after being re-directed to Paypal to make the payment, the user's session on my website is destroyed. Meaning : after payment is successful (or canceled by the user, whichever).......the "Return URL" does not work, because the user has been logged

How to re-send or retain a session cookie

微笑、不失礼 提交于 2019-12-11 15:32:41
问题 I have been trying to handle a redirect (302) in java code and I am finally been able to do it. But I am running into a problem. Which is, once the redirect opens a page, clicking any link on the page sends me back to the login page. So I have to write my own redirect implementation: private HttpMethod loadHttp302Request(HttpMethod method, HttpClient client, int status, String urlString) throws HttpException, IOException { if (status != 302) return null; String[] url = urlString.split("/");

Passing PHP Session Value

匆匆过客 提交于 2019-12-11 15:01:15
问题 I'm attempting to pass a value from one WordPress page to another through a PHP Session. I have a dropdown list on both pages, which are identical except for the option values. I would like the selected option on the 2nd page at page load to reflect the chosen value submitted on the first page. I've looked into a lot of questions but haven't been able to find exactly what I need. Any help would be greatly appreciated! Page 1: <?php if(!isset($_SESSION)) { session_start(); echo $_SESSION[

Session_start fails to read session when /action1/action2 rather than ?action1=&action2= is used

ε祈祈猫儿з 提交于 2019-12-11 14:30:53
问题 I'm using PHP7 to start sessions using my favorite control method: URL paths. This used to work [the way I'm doing it] but doesn't work in PHP7. Let's start with a completely normal hello world example. <?php session_start(); if(TRUE){ $_SESSION['test'] = 'Hello World!'; } print_r($_SESSION); echo "<P>".session_id(); Run it first with TRUE and this baby works perfectly. Set it to FALSE and you get what you expect. Run it over and over and you get the same, expected result. I can even visit

PHP: Setting the session information in a cookie won't be kept after page reloads?

为君一笑 提交于 2019-12-11 13:36:46
问题 I have a very simple php single page, that requires the user to insert a specific username and pass in order to access its contents. It generates a cookie that allows the user to access that page for one day. If the user is logged in, the list of contents appear. If it's not, it shows the form. It is all inside a single index.php page. This single "protected" page contains a form where the user can put some information and save it. After the user logs in, all the content is shown as intended.

Forms Authentication Sub domain cookie passing in some servers not others

牧云@^-^@ 提交于 2019-12-11 12:57:08
问题 I am trying to set up forms authentication across multiple servers and subdomains but I am finding an issue where it works on some of our boxes and not others. We are passing 2 cookies from one server to another. One the Forms Authentication encrypted cookie and the other an non encrypted cookie. We have the correct keys set on both boxes: <authentication mode="Forms" > <forms name=".MSLA" protection="All" timeout="30" slidingExpiration="true" path="/" enableCrossAppRedirects="true" /> <