Questions tagged as 'cookies'

2
answers

How to create a function in javascript to check if a cookie has been saved or not?

I am a student of information systems and I am learning how to create cookies in javascrit using functions and webstorege, but I am having problems when creating the function to check if a cookie has been saved or not. See the code: <!DO...
asked by 24.03.2018 / 16:06
1
answer

TWebBrowser and HttpOnly cookie

How to get the HttpOnly cookie from TWebBrowser? when logging into a page through IE, Firefox, or chrome I see the following cookie: Cookie: _ga = GA1.3.2133370562.1518083464; _gid = GA1.3.1396320410.1518629322; _gat = 1; JSESSIONID = Qfh5hG...
asked by 15.02.2018 / 00:42
3
answers

How to restrict one page access to logged in users?

I am a login system and register with 2 levels (1 corresponds to the common user and I want it to be redirected and level 2 is ADM, ADM has no problems). Can get the regular user to redirect to the site, but still has a failure to access the sit...
asked by 11.02.2018 / 08:47
0
answers

Put hyperlinks in html / asp.net and save to cookies

The question is the following, I have the form presented below: The'Mark'linkallowsyoutoselectthe'Person'element(nameofthedatabasetablewiththeforminformation).Therequestformarkingmustbedonebyclickingonthelinkandtheinformationwillhavetobestoredi...
asked by 01.02.2018 / 19:18
1
answer

Cache \ Session in Python

I have a script in Python that runs a Tornado application. Within onmessage I have several variables that will keep an equal value always, so there is no need to fill them whenever a new message arrives for the Tornado. Currently I d...
asked by 19.12.2017 / 11:21
0
answers

Error creating cookie json with jquery

I'm trying to create a simple cookie with a value of the key in json, but I'm getting this from the browser (click on the photo): This is the plugin I'm using    Code, follow below: $.cookie("gavetaMilagres", '{"sub_key_1":"sub_valu...
asked by 24.11.2017 / 20:31
1
answer

Access values set in the Controoller in Prestashop 1.6

I'm setting the cookie value in FrontControlller: this->context->cookie->utm_campaign = $_GET['utm_campaign']; But accessing in the OrderConfirmationControllerCore is coming null: $this->context->cookie->utm_campaign;...
asked by 21.09.2017 / 18:52
2
answers

$ _SESSION login problem, $ _SESSION ends alone [duplicate]

My login system is not working ... In my project I have a file called cabecalho.php <?php ob_start(); //abrir sessao session_start();//iniciar sessao error_reporting(0); //ignorar alguns erros include("Pdo/conexao.php"); //conex...
asked by 06.09.2017 / 18:27
1
answer

Handle cookie for Popup

Hello, I'm trying to make a popup, I've already set up its structure, I just need to validate it so that it does not open all the time I visit the page, I'm trying to use a cookie, I do not know if my code is conflicting with wp or is wrong. &l...
asked by 23.08.2017 / 20:06
1
answer

How to use PHP variable in other pages [duplicate]

I have a script that brings the results of a sql search as follows: $sql = (...); $result = $db->query($sql); while ($obj = mysqli_fetch_object($result)) { $ids = $obj->id_prestador.","; } If I make an echo $ ids after creating...
asked by 07.08.2017 / 19:48