Re: COOKIE (Javascript/PHP)
On Apr 26, 4:14 pm, RootShell <rootsh...@xxxxxxxxxxxxx> wrote:
I have been experiencing a lot of troubles in reading a PHP COOKIE from
javascript.
There are not PHP or JavaScript cookies. There are just cookies and
PHP and JavaScript can read and manipulate them.
if i write the cookie and read it in javascript in the same PHP file it
works well, but if i write the cookie for instance in a Javascript(AJAX)
called PHP file, the Javascript can read it.
That is a mouthful of an explanation. I'm not clear what is the
problem but I'm guessing that there is something to do with the path
part of the cookie and that you are not setting that part at all or
correctly.
Peter
.
Relevant Pages
- HACKING WITH JAVASCRIPT
... This tutorial is an overview of how javascript can be used to bypass ... You probably already know about sql injection, my goal is to explain how ... search forms, dynamic links, or session cookies. ... (select boxes, hidden fields, checkboxes and radio buttons, and cookies!). ... (comp.lang.java) - Re: Jargons of Info Tech industry
... >> Does the language allow Javascript to open a new window? ... >> in the HTML, it's a bug. ... >> If it can look at or set cookies stored on my system, ... (comp.unix.programmer) - Re: HACKING WITH JAVASCRIPT
... that javascript validation has allways been useless because its a client-side ... and 2 also hold for cookies, they are just an HTTP header and can easily be ... AFAIK SQL Injection has nothing to do with javascript ... > through search forms, dynamic links, or session cookies. ... (Bugtraq) - Re: Need help regarding redesigning website
... I experimented with JavaScript; but I found it was far more bother than it was worth. ... And I wouldn't know how to store userpreferences without cookies. ... I think you are on the VERY safe side avoiding all those techniques, but that also makes boring pages with a 1995 look and feel. ... Erwin Moller ... (comp.infosystems.www.authoring.html) - Re: Cross-domain cookie updating ?
... It's not strictly a PHP question, but something that PHP guys would know the answer to. ... If the file being returned has updated cookie information in the response header, then I imagine the cookies for example.com get updated. ... What if the JS file it's requesting is actually to a different unrelated domain server that's going to return a JavaScript file with updated cookies in the response header. ... (comp.lang.php) |
|