session-cookies

ANDROID : Share session between Webview and httpclient

纵饮孤独 提交于 2019-12-28 03:32:13
问题 I have actually a logged session in my WebView. But I use also httpclient to send and get data from the web. I saw on the internet that it's impossible to get the content of a WebView, so I needed to use my httpclient to get data from a webservice. The problem is that this webservice uses sessions... and my session is in my WebView, so the httpclient doesn't have it and I can't access the content of the webservice. I see many posts about this problem but I didn't understand the solution. Here

Yahoo Finance Historical data downloader url is not working

陌路散爱 提交于 2019-12-28 02:53:13
问题 I have used the following url to fetch the historical data from yahoo finance. From last 16th May, 2017 the url is not working. http://real-chart.finance.yahoo.com/table.csv?s=AAL&a=04&b=01&c=2017&d=04&e=02&f=2017&g=d&ignore=.csv Seems like they have changed the url and the new url is: https://query1.finance.yahoo.com/v7/finance/download/AAL?period1=1494873000&period2=1494959400&interval=1d&events=history&crumb=l0aEtuOKocj In the above changed URL has a session cookie which is crumb. Is there

Laravel Session always changes every refresh / request in Laravel 5.4

筅森魡賤 提交于 2019-12-28 02:52:09
问题 So the title basically says it all, I am using Laravel 5.4, PHP 7.1 and on my local machine sessions are working just fine. Essentially when trying to login or reloading the page every time I get a new CSRF token which breaks everything. I am using database as my session driver and it creates a new entry into the DB every single request I make. This happened on my local machine when I first upgraded but to fix it the solution was to update my cookie_domain env variable and I got it working.

JavaScript Duplicate Cookies

不打扰是莪最后的温柔 提交于 2019-12-25 18:13:06
问题 I'm using the Hapi framework for a Node.js application, and the Hapi framework comes with its own Cookie management tools, which i'm using for authentication. The framework then sets a cookie named session, with a json value encoded to base64. The domain is set to example.com (not .example.com) Now, the problem lies when i attempt to edit this cookie client-side, by doing the following document.cookie = 'session=' + btoa(JSON.stringify(_decoded)) + "; path=/; domain=example.com"; This

Does using session state=StateServer and cookieless=true still store cookies on the user's computer?

柔情痞子 提交于 2019-12-25 13:19:06
问题 In looking at persisting user information across a web session (.Net MVC), if we use a state server and set cookieless=true, is there still a cookie stored on the user's system, as it relates to the .Net authentication, etc. We would also use the state server to store what would have been used in a session object. I to realize that some cookies are good - ie, AntiXsrfToken and __RequestVerificationToken. Apart from these, we are looking for a fully cookieless solution. Thank you. 回答1: if we

Go : How to Set same Cookie on all pages?

雨燕双飞 提交于 2019-12-25 11:53:04
问题 After logging in my url changes to /login/ and cookie gets set. After setting cookie need to redirect the page on home page (url : /homePage/) other than /login/. How to set same cookie in all pages? 回答1: You can use the inbuilt CookieJar library to manage a store of cookies (see this answer for some pointers), but it's probably easier to use something like Gorilla Sessions from the Gorilla Web Toolkit. There is also some GAE specific setup (from http://www.gorillatoolkit.org/): For Google

How to get CSRF token from mobile apps when CSRF_USE_SESSIONS is True ? (Django 1.11)

余生颓废 提交于 2019-12-25 10:25:11
问题 Good evening everybody, As a student group, we are developing an API using Django 1.11.2 and we would like to consume our API from mobile apps (such as Android applications). Currently, we are struggling getting the CSRF token from mobile applications, here's the background : We are using CSRF_USE_SESSIONS = True. From what I understand from the Django CSRF documentation, the token is stored in the session instead of a cookie. We are using the SessionMiddleware in which the SESSION_ENGINE is

Session data lost before ticket timeout

╄→гoц情女王★ 提交于 2019-12-25 08:13:54
问题 I try to set a rather long session time of 60 minutes on my web site by setting in web.config the authentication / forms / timeout value, and also by setting in code behind of the login page FormsAuthenticationTicket.expiration. However, already in 20 minutes, way too early, data in my Session variable got lost. How does this work and how do I fix it? Web.config: <authentication mode="Forms"> <forms name="MYWEBAPP.ASPXAUTH" loginUrl="~/Login.aspx" protection="All" timeout="60" /* <<------ */

Session data lost before ticket timeout

∥☆過路亽.° 提交于 2019-12-25 08:10:06
问题 I try to set a rather long session time of 60 minutes on my web site by setting in web.config the authentication / forms / timeout value, and also by setting in code behind of the login page FormsAuthenticationTicket.expiration. However, already in 20 minutes, way too early, data in my Session variable got lost. How does this work and how do I fix it? Web.config: <authentication mode="Forms"> <forms name="MYWEBAPP.ASPXAUTH" loginUrl="~/Login.aspx" protection="All" timeout="60" /* <<------ */

how .net MVC application can communicate with Core java desktop application using JWS?

↘锁芯ラ 提交于 2019-12-25 07:49:03
问题 We have a java desktop application and we are planning to launch that java desktop application using JWS and that is working absolutely fine. The issue is -- we ask some user related information from user on web page and launch java desktop application using JWS. Now we would like to have that information provided by user on web page in our java application. Please suggest how we can access those information in java code ? We have find two approaches -- Can java code read that information