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 appears, I want it to have an "X" or close button, so the visitor can close the popup. 4. I want a checkbox inside the popup that says "don't show this again". 5. If the visitor clicks to "check" the checkbox, I want the exit popup to dissapear and a …

Member Avatar
Member Avatar
+0 forum 2

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 need to distory. Give me the best options. Thanks bala

Member Avatar
Member Avatar
+0 forum 2

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 if they login var loginstate = true; document.cookie = "login_state = " + loginstate; } function checkCookies() { // Check to see if there are cookies on the user's computer var c_value = document.cookie; if (c_value == "login_state = true") { document.getElementById("loginstate").innerHTML = "Create Account"; document.getElementById("loginstate").setAttribute("href", "createaccount.aspx"); } else if(c_value …

Member Avatar
Member Avatar
+0 forum 2

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 so the cookies be set in only one place ? easier meaning : url = www.xxx.com , cookies website name = www.xxx.com url = xxx.com , cookies website name = xxx.com xxx.com != www.xxx.com

Member Avatar
Member Avatar
+0 forum 1

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 statement. Step 2: Instance the cookie class by using the new keyword. The constructor uses these parameters cookieName[string]{required} as the base name of the cookie cookieTimeout[int]{required} as the time added the Unix timestamp to determine when a cookie expires cookieSerialize[bool]{optional} default is false. If set to true then the cookies …

Member Avatar
Member Avatar
+1 forum 1

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

Member Avatar
Member Avatar
+0 forum 2

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']; } This php code is placed at the top of the page. This has created a conflict with the JavaScript cookie. Is there anyway to get both cookies working together.

Member Avatar
Member Avatar
+0 forum 3

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 cookie is set to true (lets say whereelse = true) else its set to false (lets say whereelse = false). This works. It sets it to true and false. After clicking a link, that basically goes to the cart it goes to http://example.com/step2 But I do not see the cookie …

Member Avatar
Member Avatar
+0 forum 3

I wanted to know how cookie stored for each website? How they identify thei cookie?

Member Avatar
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 2

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 This is the output that I am receiving and repeats for 60 cookie elements. I have no idea how a null element snuck in there. There are only 3 values in the enum class. If anyone could help me point out the problem I would very much appreciate it. Thank …

Member Avatar
Member Avatar
+0 forum 6

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
Member Avatar
+0 forum 1

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 user would be instantly redirected to the appropriate language version of the site. I'm new to JS, and want to avoid building bad coding habits; what would be a recommended way of coding this?

Member Avatar
Member Avatar
+0 forum 1

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 will appers just in his profile and not in profile of other customers but if he change ids number like this invoice.php?ids=150 he will see content although he did not create that purchase. This is not a big problem if someone does not try to change ids of invoice.php and …

Member Avatar
Member Avatar
+0 forum 3

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 logged in it give them a menue, if not it just has sign up / register. The problem i am getting is, sometimes the cookie works and sometimes it doesn't. Is there anything i can change/add to make this more reliable or is there a better way to write a …

Member Avatar
Member Avatar
+0 forum 2

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**: my desktop PC is connected to the Internet to a hub (D-LINK router) via LAN (ethernet cable). I have a notebook connected to Internet via Wi-Fi to the same hub (D-LINK router). I access facebook on my notebook on WIN XP OS. I monitor the packets with wireshark on my …

Member Avatar
Member Avatar
+0 forum 1

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")

Member Avatar
+0 forum 0

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 the case, the cookie will be deleted along with the username. Here are the pieces of code: if (isset($_POST['remember'])) $rem = $_POST['remember']; ... if (isset($rem)) { setcookie('user', $userName, time()+3600); } else { setcookie('user', $userName, time()-3600); } If the "remember me" box is not checked, cookie is "deleted". Next, in the …

Member Avatar
Member Avatar
+0 forum 2

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 is the code I have been trying with, you will see where I am setting the cookies, but I need to make the cookie variable = $row ["id"] [code] if ($_POST['sms'] != "") { include_once "../includes/config.php"; // Be sure to filter this data to deter SQL injection, filter before querying …

Member Avatar
Member Avatar
+0 forum 2

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 their revisit for a set period after also). I have the addClass/removeClass thing working but don't know how to add the cookie so that the class is carried over to subsequent pages that the user visits. There's a tutorial here [URL="http://www.ilovecolors.com.ar/using-cookies-jquery/"]http://www.ilovecolors.com.ar/using-cookies-jquery/[/URL] that does almost what I want however I can't …

Member Avatar
Member Avatar
+0 forum 2

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 want to display multiple values of single cookie.. value must no overwrite... coz i don't know how many times the user clicks the likn...

Member Avatar
Member Avatar
+0 forum 4

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] <script type="text/javascript"> jQuery(document).ready(function($) { var hour = 0; var minutes = 0; var secs = 12; var thisdelay = (hour*60*60*1000) + (minutes * 60 * 1000) + (secs * 1000); $.cookie("myppix", "<?php echo "$mypp"; ?>").delay(thisdelay); }; //prevents jQuery 1.5.1 and 1.3.2 from conflicting jQuery.noConflict(); </script> [/CODE]

Member Avatar
Member Avatar
+0 forum 1

[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] When does the cookie expire? When I run it on Firefox ,the cookie doesn't expire after 5 seconds .... Can you tell why?

Member Avatar
Member Avatar
+0 forum 6

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 update the database ? Please help me

Member Avatar
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 1

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

Member Avatar
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 3

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 yet effective way to do this? I would use this with my custom wordpress site for reviewing apps Thanks

Member Avatar
Member Avatar
-1 forum 2

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] $( "#droppable2" ).droppable({ activeClass: "ui-state-hover", hoverClass: "ui-state-active", accept: "#draggable3", drop: function( event, ui ) { var jdc = $(this).attr("id"); //I need to post this variable $( this ) .addClass( "ui-state-highlight" ) var x = ui.helper.clone(); x.appendTo('body'); var jdi = $("img").attr("id");//I need to post this variable $(this).droppable( 'disable' ); x.append("<span>x</span>") $("span").click(function (){ …

Member Avatar
Member Avatar
+0 forum 3

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 codes using in order to set cookies: [CODE]$id=$_GET['id']; $oy=$_GET['oy']; if ( !isset($_COOKIE["$id"]) ) { // If the browser is Internet Explorer if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) { setcookie("$id", $id, time()+864000, "/", ".apps.facebook.com/myapplication"); // Other browsers } else { setcookie("$id", $id, time()+864000, "/", ".apps.facebook.com/myapplication"); } }[/CODE] These ways I have tried and I cannot get …

Member Avatar
+0 forum 0

The End.