Search Result

Collapse
12 results in 0.0041 seconds.
Keywords
Members
Tags
cookie
  •  

  • ravenchild
    started a topic How to correctly set a cookie value in headers

    How to correctly set a cookie value in headers

    Maybe you will help me in this "simple" case:

    Code:
    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/9...0523110058.png My question is: How I can add new element...
    See more | Go to post

  • tusharthakar
    started a topic Php session cookie
    in PHP

    Php session cookie

    I have this program created in PHP using MVC pattern.

    I am using sessions for the program.

    I am starting the session in bootstrap which is straight after the index.php

    the session name is changed before starting session in bootstrap ... getting to the question after slight more info.

    I wanted to know how to delete session cookie.

    when someone logs in a session is created with...
    See more | Go to post

  • tpgames
    started a topic Why does cookie code not work?

    Why does cookie code not work?

    I was trying to make my website accessible for those who need better colour contrast by allowing them to choose their css sheet that would be used all over my website. I got the code off the web (2010 coding?), and that code DOES Work on the Main page, but the cookie code itself, does NOT apply the person's choices to any other page.

    UPDATE: Do I need to put the cookie code on ALL pages? I didn't think I had to. Thanks! I did notice...
    See more | Go to post
    Last edited by tpgames; Mar 7 '12, 12:21 AM. Reason: question added

  • Hebrew chars are gibbrish in a cookie that was created by firefox.

    Hi,

    I'm trying to save hebrew chars into a cookie , but the result is gibbrish chars.

    It happen only for firefox. when I'm working with internet explorer it works fine.

    I'm working with javascript.

    Thanks,
    Yair
    See more | Go to post

  • Best way to get data from database

    This is not so easy to explain, but I'll try my best

    There is an application sw for mobiles that you can download and then receive alerts of an specific area (sports, music, etc). When you donwload this sw you can register and create a profile. This information is keep it in a database from a server. I have acces to that server.

    I have also different mobile pages (in another server) and I want to identify the people that...
    See more | Go to post

  • Franco Cassar
    started a topic Why is cookie never set after login validation?
    in PHP

    Why is cookie never set after login validation?

    Ok, so far I have always used JSP and Servlets for my web programming, but now I needed to make use of PHP... and I'm stuck at something really basic: setcookie.

    The form works fine, and it checks with the database for the username/pass ok (because when I supply good credentials I return back to the homepage, and with bad credentials it appends the error parameter with the URL).

    Anyway, the cookie is never set. The browser...
    See more | Go to post

  • cookie problem with frameset involving 2 domains

    Hi,
    I have a site whose every page uses JavaScript to redirect visitors to a site use agreement page until they've accepted the agreement. When they click OK, a cookie is saved and the pages stop redirecting.

    It worked fine until the site was displayed from within a wrapper page sitting on a different domain.

    Here's the set-up:
    • The page the user opens is a frameset on Domain A ( www.blah.net/wrapper.html).
    • The
    ...
    See more | Go to post

  • Zahir86
    started a topic cookie related accounts
    in PHP

    cookie related accounts

    Hi ,

    Say if someone is abusing our webservices by creating several user id's, So how can we stop them ?

    I believe comparing two account created on the same machine,network ,cookie or IP is the solution for that.

    Say, if user A logged in and later User B logged in to the same computer then i need to be able to find them out, by means of COOKIE .

    Need good suggestions and ideas to accomplish...
    See more | Go to post

  • php: transfer a variable from one page to another & setup cookie

    I am trying to set-up polls for almost all the pages.

    After you submit the response I want to get back to the original page and instead of the form to show the poll results.

    Also, I want to set-up a cookie to make sure that the same person does not vote twice.

    There are 3 pages involved and one script file:
    • main_page.php
    • poll_vote.php
    • poll_results.ph p


    I want all the polls to use the same poll_vote.php...
    See more | Go to post

  • stay logged in & remember me - PHP sessions and cookies

    Looking for guidance on how to accomplish the following.

    Default login:
    User is logged in with a session lifetime of 25 minutes, or until the browser closes:
    Code:
    // path for cookies - valid for all paths in domain
    $cookie_path = "/";
    
    // timeout value for the cookie
    $cookie_timeout = 60 * 60 * 25; 
    
    // timeout value for the garbage collector
    $garbage_timeout = $cookie_timeout
    ...
    See more | Go to post

  • phpuser123
    started a topic Remember session till the next time I log in
    in PHP

    Remember session till the next time I log in

    I have visited various sites n when I log in,there is an option
    "remember me"

    I want to know how this works....Do they use a cookie for this task.....
    I usually put time()+3600 for it to expire one hour later ...What should I put as the expiration date such that it remembers me till the next time I log in?

    The syntax of the coookie is :
    setcookie(name, value,exp...
    See more | Go to post

  • My site was attacked - XSS, Javascript, moz-binding, firefox

    So I implemented a javascript-based menu. And I wanted to keep the state of that menu when a person comes back to my page. So to do that, I create a cookie using javascript and I put the clicked link into that cookie. So each time the page is loaded, it checks the cookie and sets the page so that link is "clicked" and associated content is shown.

    So I visit my site (in firefox) and I notice that -moz-binding is being applied...
    See more | Go to post
    Last edited by acoder; Feb 27 '09, 07:27 AM. Reason: Added original text
Working...