session-cookies

Unable to set Cookie in curl Request

早过忘川 提交于 2019-12-23 05:06:50
问题 i have created a Register script for this site. i know there have captcha at register, but thats not problem, when i running it, its showing "Your Session Expired" its seems that i have some cookie problem. i tried tempcookie but still its same.. i not understanding whats the problems. if it shows "invalid captcha" or something like that, then its ok. but its showing Cookie Problem. here is the codes. //$cn = str_replace(".","",$_SERVER['REMOTE_ADDR']); //$finalcookie = "coki/".$cn.".txt";

User logout after non-persistent login in Asp.Net Identity 2

若如初见. 提交于 2019-12-23 05:05:01
问题 I am trying to configure Asp.Net Identity 2.2 to be able to login normally and permanently. I know there are two settings to get into account, the validateInterval of the CookieAuthenticationProvider and the ExpireTimeSpan of the CookieAuthenticationOptions. Here is the standard configuration which comes with a new MVC 5 application, with the ExpireTimeSpan and SlidingExpiration set explicitly to their default values just to have them in mind: app.UseCookieAuthentication(new

How to use Cookies in HttpURLConnection for ANDROID?

徘徊边缘 提交于 2019-12-23 03:36:32
问题 I am trying to create an Application for Asterisk Interface, the configuration setup has been done properly as I have double checked it. It seems the reason why I can't access Config files from Asterisk server has to do with the connection. I need to use a cookie for connecting to the same instance of the login session. But so far I am unable to use Cookie Properly need a little help. I am supposed to login by pressing button1 (bt1) and get config file by pressing button2 (btn2). public class

Jboss 5. HttpOnly session cookies

萝らか妹 提交于 2019-12-23 03:09:04
问题 How to configure JBoss 5.1.* to make session cookie HttpOnly? <Context useHttpOnly="true"> Doesn't work. 回答1: Have you tried <SessionCookie secure="true" httpOnly="true" /> as explained here. 回答2: I'm using JBoss [EAP] 5.0.1 and adding <SessionCookie secure="true" httpOnly="true" /> in <myJBossServerInstancePath>/deploy/jbossweb.sar/context.xml <Context cookies="true" crossContext="true"> <SessionCookie secure="true" httpOnly="true" /> ... works perfectly (thanks Luciano). 回答3: Add

passport req.isAuthenticated always return false when using angular $http request

南笙酒味 提交于 2019-12-23 01:42:28
问题 I am using passportjs for my user authentication. By using postman , I can successfully login and req.isAuthenticated always returns me true in the subsequence requests after login. By using angular $http , However, login works ok but the req.isAuthenticated always returns me false in the subsequence request. My angular app(localhost:3000) and the node app(heroku) are at different domain. My thoughts was it may relate to either CORS or session cookie since I do not see any cookies in my

Setting HttpOnly=true on ASP 1.1 Session ID cookie

馋奶兔 提交于 2019-12-23 00:23:33
问题 I have a client who runs his Classic ASP site under IIS 6.0. The web site is targeted for ASP.NET 2.0 in the ASP.NET configuration tab. A recent PCI Scan of his site is failing him with an HttpOnly vulnerability on his ASPSESSIONID cookie. I have installed an ISAPI .dll that successfully sets HttpOnly on all manually created cookies, but ASPSESSIONID cookie is not effected by this for some reason. I have set web.config with the following configuration: <system.web> <httpCookies

Session replication in Glassfish Cluster on EC2

别说谁变了你拦得住时间么 提交于 2019-12-22 11:37:30
问题 I've built a cluster on Glassfish administred via SSH, where there are 2 instances. I deployed an application that shows the "Session id". This application has in the web.config: <distributable/> And in the sun-web.xml: <session-config> <cookie-properties> <property name="cookieDomain" value="compute.amazonaws.com"/> </cookie-properties> </session-config> I enabled "Availability" in Edit Application. But when I access the 2 web app versions I see different session ids. Can anyone help me?

Zend Framework - Internet Explorer - phpsessid cookie issue

柔情痞子 提交于 2019-12-22 11:12:28
问题 I've created a Zend Framework Website App session intensive. It works great in Chrome and Firefox but it is not working in IE. The session resets every page in IE. Looking into the headers I find that IE browser is getting a different phpsessid cookie in every get or post within the same browser so the session is not working. In FF and Chrome the phpsessid cookie persists ok. Anyone knows why this can happend only in IE? I have this code in bootstrap.php: $generalSession = new Zend_Session

Setting a domain on the default connect.sid browser cookie in an express app

ⅰ亾dé卋堺 提交于 2019-12-22 08:34:26
问题 OK so I have an express/mongo app that operates based on subdomains. I have read that it's possible to have a session ID cookie be available to subdomains by setting the domain of the cookie to .mydomain.com That should work, but I can't figure out how to get that property into the default browser cookie (connect.sid). I'm using express-session for sessions, connect-mongo for persisting the sessions, and of course cookie-parser to make that all work. There seems to be a few different places

Sessions and Cookies to autologin in GWT

烂漫一生 提交于 2019-12-22 07:00:39
问题 i know there is a lot of questions on this already but I still didn't seem to find a definitive answer. What i'm looking to do is have users be remembered after they login for say 2 weeks or until they log out. Below is what I think should be happening and I was wondering if anyone with a bit more experience could tell me if i'm right or wrong. User logs in for the first time. An RPC call to the server returns a 'UserInfo' object which includes with it a new sessionID. Aka on the server this