cookies

FormsAuthentication.SetAuthCookie not setting Path or Domain?

Deadly 提交于 2020-01-11 05:02:07
问题 I have a web app can be installed on lots of domains and paths. So: client1Name.{mySite.com} client2Name.{mySite.com} demo.{mySite.com}/prospect1Name demo.{mySite.com}/prospect2Name demo.{mySite.com}/prospect3Name All separate application instances of the same code. The problem is that if a client logs in to client1Name.{mySite.com} then visits one of the other sites their browser will send the authentication cookie. In all cases FormsAuthentication.SetAuthCookie doesn't set either the Path

How do I setup IIS with a cookieless domain to improve performance?

给你一囗甜甜゛ 提交于 2020-01-11 04:25:31
问题 I was reading in google's documentation their new pagespeed plugin, that they recommend using cookieless domains to improve performance: Static content, such as images, JS and CSS files, don't need to be accompanied by cookies, as there is no user interaction with these resources. You can decrease request latency by serving static resources from a domain that doesn't serve cookies. Does anybody know how to do this in IIS? 回答1: What the Google article is suggesting is that you serve all your

is it possible to value store cookies in Flash or Flex?

蹲街弑〆低调 提交于 2020-01-10 20:01:12
问题 In PHP there is a setcookie function based to store it. In Flash is it possible ?. If it is possible then how? I want to store value. 回答1: First off: PHP runs on the server and therefore can send the necessary HTTP header to set a cookie, Flash runs in the client's browser and thus can not do the same. However, there is a way to access and store cookies from flash/flex by using the flash.external.ExternalInterface and calling JavaScript functions to get and set cookies. I've developed a class

PHP 7.2 Warning: “Cannot change session name when session is active”

孤街醉人 提交于 2020-01-10 17:30:12
问题 Since PHP on our server was upgraded to 7.2 from 7.0. I am getting the following warning (which leads to error) if a new deployment is done. The reason is probably, that old sessions get invalid after deployment. Warning: session_name(): Cannot change session name when session is active in /var/www/html/model/login/lib/Session.class.php on line 137 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /var/www/html/model/login/lib/Session

Authentication/Session cookie deleting after browser close

雨燕双飞 提交于 2020-01-10 14:15:14
问题 What are the exact steps required for a cookie to persist after a browser is closed? At the moment I have: createPersistentCookie set to true on LoggedIn event. MachineKey specified. Forms sliding expiration set to true . As long as the browser is open, the user will stay logged in, but as soon as it's closed, and it doesn't matter for how long, the user will need to log in again. What am I missing? EDIT: I went through the article pointed out by marapet (see comments below) and it made me

app隐私政策

懵懂的女人 提交于 2020-01-10 14:00:13
本应用非常重视用户隐私政策并严格遵守相关的法律规定。请您仔细阅读《隐私政策》后再继续使用。如果您继续使用我们的服务,表示您已经充分阅读和理解我们协议的全部内容。 本app尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更优质的服务,本应用会按照本隐私权政策的规定使用和披露您的个人信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,本应用不会将这些信息对外披露或向第三方提供。本应用会不时更新本隐私权政策。 您在同意本应用服务使用协议之时,即视为您已经同意本隐私权政策全部内容。 1. 适用范围 (a) 在您注册本应用app帐号时,您根据app要求提供的个人注册信息; (b) 在您使用本应用网络服务,或访问本应用平台网页时,本应用自动接收并记录的您的浏览器和计算机上的信息,包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据; (c) 本应用通过合法途径从商业伙伴处取得的用户个人数据。 (d)本应用严禁用户发布不良信息,如裸露、色情和亵渎内容,发布的内容我们会进行审核,一经发现不良信息,会禁用该用户的所有权限,予以封号处理。 2. 信息使用 (a)本应用不会向任何无关第三方提供、出售、出租、分享或交易您的个人登录信息。如果我们存储发生维修或升级,我们会事先发出推送消息来通知您,请您提前允许本应用消息通知。 (b)

How to login to a website with python and mechanize

浪子不回头ぞ 提交于 2020-01-10 07:22:44
问题 i'm trying to log in to the website http://www.magickartenmarkt.de and do some analyzing in the member-area (https://www.magickartenmarkt.de/?mainPage=showWants). I saw other examples for this, but i don't get why my approaches didn't work. I identified the right forms for the first approach, but it's not clear if it worked. In the second approach the returing webpage shows me that i don't have access to the member area. I would by glad for any help. import urllib2 import cookielib import

Cannot save cookie with jQuery and Internet Explorer 9

假如想象 提交于 2020-01-10 06:09:06
问题 it seems I'm not able to set a cookie on IE9 and I don't understand the cause. My goal is to set a cookie which expires after a year, and I'm using the following code $.cookie( name, value, { expires:days } ) where days is equal to 365. The cookie I've got is gone as soon as the session expired ( i.e. close and open the browser ) I've also tried with the following code but nothing changed function setCookie( name, value, days ) { var exdate=new Date(); exdate.setDate(exdate.getDate() + days);

Windows Phone WebBrowser set cookies

点点圈 提交于 2020-01-10 05:43:06
问题 I am using HttpWebRequest for REST services which uses some basic authentication that relies on JSESSIONID cookie. I need to pass that cookie to WebBrowser control to reuse that session, but didn't find any usable solution that would allow me to pass that cookie in the Browser's cookie store. Is there any way? The only way that I can think of now is to use Naviagate(url, null, MANUALLY_CONSTRUCTED_HEADER) which is kind of brute-force. Yes, and really have to use WebBrowser for this kind of

How to decode a cookie from the header of a websocket connection handshake? (Ruby)

穿精又带淫゛_ 提交于 2020-01-10 04:14:27
问题 I am running a Sinatra app within an EventMachine.run loop and in my ws.onopen method I wish to check the handshake header's cookie to ensure that the incoming request is coming from a registered user of my webapp. My Sinatra app includes the following: use Rack::Session::Cookie, :key => COOKIE_KEY, :path => '/', :expire_after => 2592000, #30 days :secret => COOKIE_SECRET and my ws.onopen method looks like this (trimmed) ws.onopen { |handshake| cookie, bakesale = handshake.headers['Cookie']