cookies

Questions on the usage of _deleteCustomVar()

萝らか妹 提交于 2020-01-06 14:01:14
问题 We have done some visitor level custom variables on our website (we used all indexes from 1 to 5), and now we are using index 1 for another custom variable name (no code to set custom variable to the previous variable name), but we encountered a problem: we still see few data for the previous custom variable name. We think it should because the previous custom variable name of index 1 is still saved in the cookie of some user's browsers. So we find the function _deleteCustomVar(index) which

Cookies not getting set in c#

无人久伴 提交于 2020-01-06 13:56:38
问题 I am using cookies to know whether a page was loaded before or not. So in page load of a asp.net c# page I am using this if (Request.Cookies["PageLoaded"] == null) { //Initialize things if page loading for first time. } and inside the if as last parameter I am setting the cookies value like given below if (Request.Cookies["PageLoaded"] == null) { //Initialize things if page loading for first time. //Set cookies value to indicate page has loaded before Response.Cookies["PageLoaded"].Value =

How to set cookies for uuid

跟風遠走 提交于 2020-01-06 12:52:46
问题 I have a website which generates a uuid every time the page is loaded/refreshed. I want to make it so that a certain value remains the same for a period of time using cookies. Does anyone know of a script which can help me? 回答1: Not sure why you are asking for a script, or what the problem here is. To set a cookie, just use: if (empty($_COOKIE["uuid"])) { $uuid = uniqid(); // or use a real UUID setcookie("uuid", $uuid, time()+30*24*60*60, "/"); } else { $uuid = $_COOKIE["uuid"]; } Actually

Access to cookies or WebBroswer class from phonegap plugin running windows phone

∥☆過路亽.° 提交于 2020-01-06 12:41:23
问题 I have to manage cookies (delete it) from my phonegap app running on a windows phone 8. I've created a C# phonegap plugin. On the web, I've found that WebBroswer class can be the way to delete the cookies of my webView. But I cannot find the exact way to access to this class from my phonegap plugin. The phonegap plugin in windows phone 8 extends the "BaseCommand" phonegap class. Any help will be really appreciated. Julien T. 回答1: This might be what you're looking for: http://github.com

Facebook php app keeps looping in IE, is there a fix on server side?

对着背影说爱祢 提交于 2020-01-06 08:15:04
问题 An iframe loading a php app keeps looping when I view it in IE. One fix is to lower the privacy setting in IE from Medium to Low. Is there a workaround on the server side? I tried the HTML header fix but with no success. Are there other suggestions? Thanks! 回答1: I fixed the infinite loop in IE using <?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> If not, you can try this setting on your Facebook Source 回答2: Try putting channelUrl file and code, see: http:/

How to get the cookie from a GET response?

冷暖自知 提交于 2020-01-06 07:58:26
问题 I am writing a function that makes a GET request to a website and returns the response cookie: extern crate futures; extern crate hyper; extern crate tokio_core; use tokio_core::reactor::Core; use hyper::Client; use std::error::Error; use hyper::header::Cookie; use futures::future::Future; fn get_new_cookie() -> Result<String, Box<Error>> { println!("Getting cookie..."); let core = Core::new()?; let client = Client::new(&core.handle()); println!("Created client"); let uri = "http://www.cnn

How to migrate cookie domain and retain the value

纵饮孤独 提交于 2020-01-06 07:44:37
问题 Is it somehow possible to migrate domains from a cookie? I have a trackingscript witch sets a cookie on the domain of the tracking script(server side, RoR backend) lets say mytracking.com. The tracking script itself is integrated as javascript on the domain mycustomer.com. Status quo is, every guest on the website mycustomer.com has now a cookie for the domain mytracking.com. Can I somehow migrate the cookie domain from mytracking.com to mycustomer.com? 回答1: In your client side JavaScript,

How to use a cookie in routing configuration in Symfony2?

雨燕双飞 提交于 2020-01-06 07:44:31
问题 I have a City parameter stored in a cookie. I would like to include its value as a pattern prefix in my routing configuration like so: # MyBundle/Resources/config/routing.yml MyBundle_hotel: resource: "@MyBundle/Resources/config/routing/hotel.yml" prefix: /%cityNameFromCookie%/hotel How can I achieve that? 回答1: Give us a use case on how you would want this to work because I don't see the difficulty. Routes are made of parameters that you can specify through the generateUrl function, the url

How to migrate cookie domain and retain the value

梦想与她 提交于 2020-01-06 07:44:26
问题 Is it somehow possible to migrate domains from a cookie? I have a trackingscript witch sets a cookie on the domain of the tracking script(server side, RoR backend) lets say mytracking.com. The tracking script itself is integrated as javascript on the domain mycustomer.com. Status quo is, every guest on the website mycustomer.com has now a cookie for the domain mytracking.com. Can I somehow migrate the cookie domain from mytracking.com to mycustomer.com? 回答1: In your client side JavaScript,

Cookies not saved in the browser

时光毁灭记忆、已成空白 提交于 2020-01-06 07:25:23
问题 I am trying to set a cookie in my browser using a Python Flask backend however, when we call the set cookie function I am unable to observe the cookie being saved by the browser. The following is my current understanding about how this is supposed to work: Cookies are just key value pairs that may have an expiration which makes them persistent, otherwise they expire when the browser is closed to set a cookie, all that is necessary is to use the set-cookie header in the response. I call the