Questions tagged as 'cookies'

1
answer

Get only part of the Cookies string

I have the cookie: twid which is returning in the browser as well. %22u%3D859186139894337536%22 I would like to just get this: 859186139894337536 You can do this in PHP . PS: I'm getting cookies of Twi...
asked by 01.07.2017 / 18:11
1
answer

Is it possible to store the tmp_name of a file in cookies?

I have the following code $allowed = array('png', 'jpg', 'gif','zip'); if(isset($_FILES['upl']) && $_FILES['upl']['error'] == 0){ $extension = pathinfo($_FILES['upl']['name'], PATHINFO_EXTENSION); if(!in_array(st...
asked by 14.12.2016 / 17:30
2
answers

Set value for a cookie

I want to change a value in cookie, I am using: public static void main(String[] args) throws Exception { URL url; HttpURLConnection conn; url = new URL("http://google.pt"); conn = (HttpURLConnection) url.openConnection();...
asked by 18.08.2015 / 19:15
1
answer

Limit to one click per person

I want to limit the click of a button to 1 click per computer. Is it possible? Code so far: <html> <body> <br><br> <a style="color: grey; background-color: #fff; font-family: Arial; text-decoration: no...
asked by 11.06.2015 / 00:22
2
answers

LogOff with bank registration and cookie deletion behind Session_End () in Global.asax

I'm needing help with a project I've been breaking my head for two days. I am using Microsoft C # MVC5 technology and framework 4.5, I also use Entity Framework 6 with Repository Pattern, Unit of Work, and Unity to perform the dependency injecti...
asked by 09.10.2014 / 22:20
1
answer

Div appear once

How to make a Div (not a pop-up, but more like a screen saver) pop up only once every 6 hours using JQuery and Cookies? I can not use PHP because the platform I'm using is Blogger and it does not allow it.     
asked by 09.12.2017 / 17:26
1
answer

Privacy policy and browser blocking cookies

Hello, I put a user remember system in my program in php, I used cookies for this, as I found in Google an explanation about them, but I came across the following: IE and some browsers if not all today block cookies that do not have a privacy po...
asked by 12.07.2015 / 13:57
1
answer

Session error in user-level validation

Well, I'm doing a simple dashboard with user level where I move to the session with an array of three values, so that's fine, the functions that validate the form, validate the user of the database, if the user is logged in or not, function that...
asked by 27.02.2015 / 19:23
2
answers

Write cookie and read its value when accessing the web site to check if expired

I need to make a JavaScript script that follows the following logic: Save a cookie with a id , which ranges from 1 to 3. Along with the cookie, the day / time OR I want it to expire in 8 hours. The user, when entering the site, s...
asked by 26.12.2014 / 22:24
1
answer

Show Div only in the second pageview and delete the cookie at a certain time

I have already searched and found nothing related, wanted a code to show a DIV on the second pageview of a person on a site, and not show more in a predetermined period.     
asked by 13.12.2014 / 18:11