35 Topics

Member Avatar for
Member Avatar for vinod tik

i have a problem in displaying the values of a cookie dynamically code goes as... <?php $x=array(); include("connect.php");//database connection file $temp=$_GET['id']; setcookie(count($x)+1,$temp); echo $_COOKIE['$x[1]']; ?> // how do i display the value of cookie every time... it is over written.... i have tried it with using array.. in short i …

Member Avatar for alan.davies
0
2K
Member Avatar for techman41973

I want to create what is called an "Exit Popup" in Jquery with the following attributes 1. The popup is triggered when the visitor moves their mouse outside of the page. 2. The popup box enters from either the left or right, outside the page. 3. When the Exit Popup …

Member Avatar for Dani
0
2K
Member Avatar for winbala5

Hi all, I had two website in different servers. Both website had same headers. so if login one server website and going to another website i want same session in this website. how to pass the session values to this server. And also if logout server means both servers sessions …

Member Avatar for winbala5
0
267
Member Avatar for MasterHacker110

I am trying to let my website create a cookie on the user's system so that it will know if the user is logged in or out. But it doesnt seem to work. Here is my javascript cookie code: function createCookies() { // Creates a cookie on the user's computer …

Member Avatar for MasterHacker110
0
262
Member Avatar for kshahnazari

There is a big problem , when I go into my website with the url www.xxx.com the cookies go into the www.xxx.com and when I go with xxx.com the cookies place is xxx.com meaning that its diffrent from the first one , how can i set and get the cookies …

Member Avatar for GliderPilot
0
175
Member Avatar for JRSofty

This class allows for the handling of normal and serialized cookies as well as switching between these types of cookies. Cookie Functions: Write Cookies Read Cookies Delete Cookies Use of this class is fairly simple. Step 1: Include the class source in your php project using the require or include …

Member Avatar for LastMitch
1
330
Member Avatar for Dani

I need to set a cookie with an array as a value. Is the best way to run serialize() on the data?

Member Avatar for veedeoo
0
2K
Member Avatar for MattD00

I have set up a cookie in JavaScript to store the change to the stylesheet. The cookie is loaded using <body onload="set_style_from_cookie()"> This cookie was working fine until I set a session cookie in PHP to verity if a user was logged in session_start(); if(isset($_SESSION['username'])) { $user = $_SESSION['username']; } …

Member Avatar for riahc3
0
340
Member Avatar for riahc3

Hello Im having problems setting a cookie in PHP (using the Magento platform). The page is at: http://example.com/step1 When I click on a link here, a iframe opens up. This iframe opens up and is located at: http://example.com/somewhereelse/index.html I check a checkbox or I dont. If I check it, a …

Member Avatar for LastMitch
0
238
Member Avatar for '1'='1'
Member Avatar for deceptikon
0
117
Member Avatar for joshl_1995

Hello Community, Is there a way to make it so a cookie will expire after the user has been inactive for 10 minutes. Please Help...

Member Avatar for joshl_1995
0
245
Member Avatar for tingwong

Hello all. For my project I have to create a snack machine with mints and cookies. So far I have gotten an array of cookies with the code below. However an interesting problem I'm having is my output: OATMEAL cookie LEMON cookie null CHOCOLATE_CHIP cookie OATMEAL cookie LEMON cookie null …

Member Avatar for JamesCherrill
0
1K
Member Avatar for bib94

My comouter which i just updated to windows 7 can no longer connect to the interent. It could beofre when it was on xp but now it says no networs found. my sound also doesnt work. it says no audio device installed but there was before

Member Avatar for JorgeM
0
153
Member Avatar for Patiodude

I've got a website with a splash page where users select one of two languages in which to access the page, and have the option of ticking a "remember me" checkbox, which would write a cookie. On subsequent visits to the splash page, the cookie would be read, and the …

Member Avatar for Taywin
0
172
Member Avatar for logicaweb

I'm making a B2B portal that can see just loggedin business customers that I add to base, I finished almost all, but there is one problem. When customer add some goods to his cart, goes to checkout and confirm his order he will have a link to invoice.php?ids=156 and that …

Member Avatar for urtrivedi
0
168
Member Avatar for nathan.mackinnon1

Hi, I am having a bit of trouble with a login scritp I have written. I have a script setting some cookies (so i know when the user is logged in) and on my other pages i use a scrip to see if they are logged in, If they are …

Member Avatar for Biiim
0
309
Member Avatar for pahunrepublic

I am testing wireshark for learning purposes. I wanted to try out a tutorial that hacks a facebook account stealing cookie information. I couldn't manage to hack my facebook account because wireshark is sending me truncated packets that I can't get cookie info out of. **This topography of the network**: …

Member Avatar for DeanMSands3
0
252
Member Avatar for khukln-k

Maybe you will help me in this "simple" case: request2 = urllib.request.Request(url) cj2 = http.cookiejar.CookieJar() urlOpener2 = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj2)) url2 = urlOpener2.open(request2) allinfo2 = url2.info() Output of this script is on this image: http://img195.imageshack.us/img195/9514/20120523110058.png My question is: How I can add new element to headers ?? something like that ('Set-Cookie',"server=2")

0
127
Member Avatar for epson121

Hello everyone. I'm having a problem with my cookie. What I'm trying to do is this: When user logs in and checks the "remember me" checkpoint, i want to save his username to $_COOKIE['user']. [] For that I am checking whether the $rem variable is set. If this is not …

Member Avatar for epson121
0
5K
Member Avatar for DaveyMoyes

Hi Everyone, Hoping someone here can help me fix this problem I have of setting a cookie variable from a databse $id = $row["id"]; variable. This seems to work fine when using session data, but I am trying to use cookies and I am a bit stuck. . . here …

Member Avatar for Biiim
0
424
Member Avatar for Surfsup

I have 2 links ('black' & 'white'). I wish for the user to click on one of these links in order to addClass and removeClass to the body and for that change of body class to persist throughout as the user browses other pages of the website (or indeed on …

Member Avatar for Surfsup
0
1K
Member Avatar for rievan

Hello I have a question that is driving me crazy. I am trying to set a cookie after the page has loaded for 1 minute. Currently in my script I set it to activate the cookie after 12 seconds. but it doesn't seem to work. Please help me.. Thanks [CODE] …

Member Avatar for Airshow
0
235
Member Avatar for swissknife007

[CODE]<?php $time1=time(); $time2=$time1+5; echo $time2-time()."Current time<br>"; setcookie("user","Abhi",$time2); // ECHO "<html> // <body> // <form action='cookie2.php' method='get'> // <input type='Submit'> sybmit // </form> // </body> // </html> // "; ?> <?php while(isset($_COOKIE["user"])) { echo "hi ".$_COOKIE["user"]; echo time()."Current time if<br>"; } if(!isset($_COOKIE["user"])) { echo "hello"; echo time()."Current time else<br>"; } ?>[/CODE] …

Member Avatar for diafol
0
178
Member Avatar for rayidi

Dear Friends, I'm Currently using php session ( $_SESSION[''] ), I want to use $_COOKIE Because when a user didn't click the logout button and he closed the website. still he is showing Online because i write the code at the logout page. So If we use $_COOKIE it is …

Member Avatar for diafol
0
187
Member Avatar for reco21

how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site.

Member Avatar for reco21
0
189
Member Avatar for edn_781

Is it possible to sending HTTP request without cookies? Or to a Browser where COOKIES allowing is blocked?

Member Avatar for gotboots
0
113
Member Avatar for edn_781

I am very new to PHP.. Please let me know which part will be saved in Client PC and Which part will be saved in Server? [CODE=PHP]$_SESSION['name'] = 'John';[/CODE]

Member Avatar for rotten69
0
257
Member Avatar for maxlipman

Hi, My name is Max and I am 14. I need to show warning first time my site is visited. (like SNIP the first time you visit it shows a warning, the seconds time it just takes you to the site, my uncles friends site) Does anyone know a simple …

Member Avatar for maxlipman
-1
137
Member Avatar for newboi

Hi Guys, Can't seem to get my head around this one. I need to send a bunch of variables to php so that i can store the values in a database, but i just can't figure out a way to do that. Pls help. here's a little code [code] $( …

Member Avatar for F-3000
0
253
Member Avatar for gry

Hi, I coded a script and I have started to use it with facebook apps. I want to set cookies while users are using my app. In firefox, cookies are working normally;however, the application do not set cookies in Internet Explorer and users cannot have any restriction. There are my …

0
194

The End.