thank you :)
"Rasmus Lerdorf" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Means the cookie will only be sent over an HTTPS connection.
>
> On Wed, 5 Mar 2003, Hans Prins wrote:
>
> > Can anyone tell me what the secure argument in the setcookie() function
> > does?
> >
> > setco
Means the cookie will only be sent over an HTTPS connection.
On Wed, 5 Mar 2003, Hans Prins wrote:
> Can anyone tell me what the secure argument in the setcookie() function
> does?
>
> setcookie ( string name [, string value [, int expire [, string path [,
> string domain [, int secure])
>
>
Thanks Kale, I'll have a go with your code
- Original Message -
From: "kale" <[EMAIL PROTECTED]>
To: "Php. Net" <[EMAIL PROTECTED]>
Cc: "'Awlad Hussain'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 9:29 AM
Subject: R
___
__
// end kale's code
__
-Original Message-
From: Awlad Hussain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 11:15 AM
To: kale
Subject: Re: [PHP] cookie problemes
Hi Kale,
I have the same problem with cookie, i
24, 2003 8:11 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] cookie problemes
> $path = "/";
> $domain = ".mydomain.ro";
> And in my cookie folder i find a cookie named: [EMAIL PROTECTED]
> But other computer (with
> problems) i don't ha
> $path = "/";
> $domain = ".mydomain.ro";
> And in my cookie folder i find a cookie named:
> [EMAIL PROTECTED] But other computer (with
> problems) i don't have any cookie with same name.
> And if i reload the page and print
> $HTTP_COOKIE_VARS[$n_sessid]
> it's nothing. I have 12 computers and 10
computers and 10 are ok.
kale
-Original Message-
From: Gonzo [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 1:30 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] cookie problemes
> :( don't work.
> I put "Setcookie($n_sessid, $sessid,
>
> :( don't work.
> I put "Setcookie($n_sessid, $sessid,
> time()+$cookie_life, $path,
> $domain, 0);"
> In script but don't work. Same. No cookie in cookie
> folder.
> Other idea?
Nothing other than 1) What are in the $path and $domain
variables? and 2) did you grep in your cookies folder?
Someti
12:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] cookie problemes
> What "path" and what "domain"?
See "path" and "domain" here:
http://php.net/setcookie
Gonzo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> What "path" and what "domain"?
See "path" and "domain" here:
http://php.net/setcookie
Gonzo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What "path" and what "domain"?
Thanks.
Kale
-Original Message-
From: Gonzo [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 12:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie problemes
> hy,
> i have a probleme with
> hy,
> i have a probleme with cookie.
> this is my code "Setcookie($n_sessid, $sessid,
> time()+$cookie_life);" and work, 80%.
> some machines (all windows - 98 and XP) with internet explorer
> (ver.5 and 6, some with the last upgrade) can write the cookie.
> same machines have
> cookie enable bec
>From your code snip it looks like you are missing ?> after the if
contruct.
Bryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I always use 4 parameters in my setcookie(cookie_name,cookie_value,time,"/")
Also, verify that $HTTP_POST_VARS['Name'] exists by printing it
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, F
This cannot be the problem, session_start is for sessions
Jason Wong wrote:
>On Thursday 13 February 2003 16:07, Terry Lau wrote:
>
>
>>Hello,
>>I created a PHP page that included cookie, here is the PHP code:
>>>if (isset($HTTP_POST_VARS['Name'])) {
>>setcookie("Name", $HTTP_POST_VARS['Nam
On Thursday 13 February 2003 16:07, Terry Lau wrote:
> Hello,
> I created a PHP page that included cookie, here is the PHP code:
> if (isset($HTTP_POST_VARS['Name'])) {
> setcookie("Name", $HTTP_POST_VARS['Name'], time()+86400*10);
> }
[snip]
> But when I called the cookie variable in anothe
You should not add any output after doing a "Location:" redirect. It's
recommended to add an exit() after the header(). Proper browsers should
halt their renderer and redirect when they find a Location: header.
HTH,
Vahan
J. Alden Gillespy wrote:
I'm creating an e-commerce website, and I just ne
--- "J. Alden Gillespy" <[EMAIL PROTECTED]> wrote:
> I'm creating an e-commerce website, and I just need
> clarification as to whether a MySQL query is
> considered as "browser output".
It is not. However, a MySQL error is indeed output. Make
sure your query is successful.
My suggestion would be
Set it without a expire time, then it will expire whenever the user
closes their browser windows. If the jsp that needs to read the cookie
on the same domain for wich it's set, it shouldn't have any problem
reading it, but yes, you won't be able to use php's $_SESSION in jsp.
Andrea wrote:
I u
Andrea wrote:
I urgently need to store a cookie that expires with session. This cookie has
to be read by a section written in jsp, therefore I don't think I can use
$_SESSION variables.
Can anyone help me?
Andrea
to set a cookie that expires with the session do
setcookie (name, value)
thi
, and I can continue using Header: calls ..
hmm.
Thanks for all the help, Jaime and Chris, much appreciated.
Chad
-Original Message-
From: Jaime Bozza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 10:22 AM
To: 'Chad Day'
Cc: 'php general'
Subject: RE: [P
y big issue for me there. CSS
and Dynamic HTML support are horrible in NS4.x!)
Jaime
> -Original Message-
> From: Chad Day [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 9:11 AM
> To: Jaime Bozza
> Cc: 'php general'
> Subject: RE: [PHP] Cookie h
er 10, 2002 9:33 AM
To: 'Chad Day'
Cc: 'php general'
Subject: RE: [PHP] Cookie handling, NS 4.x?
The original cookie specifications required that the domain in the
cookie has at least 2 (or 3 for domains not in the primary tlds) periods
in it. (So as to stop someone from usin
that
and it doesn't work)
Jaime
> -Original Message-
> From: Chad Day [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 8:17 AM
> To: Jaime Bozza
> Cc: 'php general'
> Subject: RE: [PHP] Cookie handling, NS 4.x?
>
>
> domain.com, but w
rap. >:(
Chad
-Original Message-
From: Jaime Bozza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 9:07 AM
To: 'Chad Day'
Cc: 'php general'
Subject: RE: [PHP] Cookie handling, NS 4.x?
Hello,
By any chance, is your website named http://domain.com or is
Hello,
By any chance, is your website named http://domain.com or is it
http://www.domain.com ?
Jaime Bozza
> -Original Message-
> From: Chad Day [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 8:09 AM
> To: [EMAIL PROTECTED]; php general
> Subject: R
2002 5:30 PM
To: Chad Day; php general
Subject: RE: [PHP] Cookie handling, NS 4.x?
--- Chad Day <[EMAIL PROTECTED]> wrote:
> I'm not sure how this would matter since the cookie is
> never set at all.. it's not an issue of it reading the
> cookie, as it can't read
--- Chad Day <[EMAIL PROTECTED]> wrote:
> I'm not sure how this would matter since the cookie is
> never set at all.. it's not an issue of it reading the
> cookie, as it can't read what is never set. I'll give
> it a shot when I get home though anyway.
Read my response again, and you'll see that w
ECTED]]
Sent: Monday, December 09, 2002 4:31 PM
To: Chad Day; php general
Subject: Re: [PHP] Cookie handling, NS 4.x?
--- Chad Day <[EMAIL PROTECTED]> wrote:
> I am having a fairly confusing problem with setcookie()
> in NS 4.x.
>
> My script:
>
> nscookie.php:
>
&
--- Chad Day <[EMAIL PROTECTED]> wrote:
> I am having a fairly confusing problem with setcookie()
> in NS 4.x.
>
> My script:
>
> nscookie.php:
>
> setcookie("NSUSERNAME", 'cday', time()+2592000, '/',
> ".mydomain.com");
> Header("Location: nscookie2.php");
> exit();
>
> nscookie2.php:
>
> ech
Thanks for your response.
The doc isn't explicit when it explains this two methods and don't focus
on
the register globals function for the first method.
So I use the second method only.
Thanks
mb
Bob Irwin wrote:
>
> I'm pretty sure this is a global variables problem.
>
> There is an
The register globals function must be turned ON in your php.ini for the first method
to work.
-Original Message-
From: Max Buvry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 October 2002 2:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Cookie
Hi,
I use : apache 1.3.26, php 4.2.3, post
I'm pretty sure this is a global variables problem.
There is an option in your ini.php file that refers to 'global variables'
You need to set this on, otherwise reference to them with the absolute
variable name.
Best Regards
Bob Irwin
Server Admin & Web Programmer
Planet Netcom
- Original M
Discovered my cookie issue. I wasn't setting the path in setcookie() so
it defaulted to what ever directory the script ran in. I set it so it
loads from the root of the website now, and it's working like a charm.
Thanks to all that helped!
John Holmes wrote:
>>I do the print $_COOKIE["Accces
> I do the print $_COOKIE["Acccess]"; and I still don't see any data
print.
Did you typo in your code like you did here??
Try to dump the whole $_COOKIE[] array and see what's in it.
print_r($_COOKIE);
Did you mention what version of PHP you were using?
---John Holmes...
--
PHP General Ma
> I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't
> seem to retrieve data from them.
> First I set the cookie like so:
> setcookie ("Access", "Test_Value",time()+31536000);
Try this: setcookie("Access", "Test_Value",time()+31536000,"/");
- slash as 4th parametr.
--
Krzys
I do the print $_COOKIE["Acccess]"; and I still don't see any data print.
Leif K-Brooks wrote:
> First of all, the second try should be print $_COOKIE["Access"]; with
> no second $. But, more importantly, I would reccomend you change the
> cookie name to access. This may not be the problem,
First of all, the second try should be print $_COOKIE["Access"]; with no
second $. But, more importantly, I would reccomend you change the
cookie name to access. This may not be the problem, but case in names
seems to generally cause problems.
Tom Ray wrote:
> I'm having some issue's with $
>How can I stoor array in to a cookie ?
>
>Do I just define an array and stoore it in a cookie ?
Yes.
>How do I access the data in the array then ?
$_COOKIE['array element'];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ðÒÉ×ÅÔ!
[EMAIL PROTECTED] wrote:
> hi all,
> (yes it's me again)
> i've got an other problem.
> i've got an login system, and it has to put an cookie, but it seems he
> doesn't do it.
1) users may block your cookie.
2) browsers (they often do) may not respond properly to a setcookie()
comma
Hi Richard. It is very probable I will not be able to solve this kind of
problems with my few knowledge, but in order to save everybody's time
(specially yours), I will have to advise you that more advanced writers
will ask you for a more accurate description of your problem such as
Server's Softw
Direct answer: No, you cannot read a cookie on the same page that creates
it.
The question is: why would you want to?
After all, you already have the data available to you that you would read
from the cookie because you had to use it to create the cookie on that page.
-Original Message
On Tuesday, March 26, 2002, at 11:42 AM, Miguel Cruz wrote:
> There is no chance for the server to re-read the cookies from the
> browser
> after step 2 above, unless, as you've observed, you refresh the page,
> which in effect just repeats both steps.
One ugly way that I've gotten around thi
On Tue, 26 Mar 2002, andy wrote:
> I am wondering if it is possible to send a cookie and read it on the same
> page.
>
> Following environment:
>
> There is a cookie already on the machine of the client, but expired.
> Now I am setting a new cookie and reading it on the same page via $sess_id =
because the first argument of Setcookie is the name
of the cookie you want to set.
(and what the variable will be called on subsequent pages)
SetCookie('username', $username ...) will do what
you're expecting.
Jesse Warden wrote:
> I performed a:
> setCookie($username, $username, time()+3600,"",
At 02:33 PM 2/15/2002 +0100, marcbey wrote:
>i dont know how i have to send it back, because i dont kown where and how to
>put the
>ASPSESSIONIDKJHKJHHKJH=HJVHJGHJGJGHJGJHGKJ information (in the header?)
This document may help:
http://developer.netscape.com:80/docs/manuals/js/client/jsref/cookie
I don't know!
But if you're only accesing the cookie from PHP you could use
serialize()/unserialize()
or *sessions*, they both work even on full objects.
bvr.
On Mon, 17 Dec 2001 16:30:28 -0700, Zach Curtis wrote:
>What is the syntax to set multiple name=value pairs in a cookie?
>
>Thanks.
How is exactly is SetCookie() broken?
Compare your header() call to the same SetCookie() calls and you will see
that yours produces:
Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/;
domain=www.php.net
Set-Cookie: password=d41d8cd98f00b204e9800998ecf8427e; expires=W
Mine's working great.
setcookie() is broken pretty badly though...so I use header instead...here's
my whole authentication system. I home that it will be of use to you. This
works in every browser that supports cookies. I've tested NN6-6.2, NN4.77,
IE5.0-6.0, and Konqueror 2.2.1.
On Wedne
Yes it is visible only in the domain and subdomains
Set-Cookie : foo=bar; Domain=.cnn.com; Path=/; Expires _some_date_
This cookie is for cnn.com or the subdomains(i.e. weather.cnn.com)
also it is valid for evey path because "Path" is set to "/".If it was
"/members" it will be accessible only in
I think this approach should work as long as register_globals is set to 'on'
in php.ini. If it isn't, then reference the cookie as
$HTTP_COOKIE_VARS['poccd_session'].
Kirk
> Can someone tell me if there is a bit of code I need to put
> on pages so I
> can retrieve a cookie.
> The cookie was set
I wrote this cookie script to work with every platform and every browser..
since I was having the same cookie problems you were having and a lot of
people have had in this forum. So far I have found it to work with
everything. Give it a try, if anybody finds that it does not work with a
platform
No formatting a developing station is a really stupid thing to do ;-)
Have you looked into your C:/docs/you/cookies? It should be there.
Hey, why instead don't you try to remove it? Set it to nothing - that's
it.
Logic: if at least a friend of yours sees it - means it works. Cookies
could be a
It depends on which browser you are using and on what platform. On the
MacOS in IE you can view cookies by going to Edit -> Preferences -> Cookies
in Netscape you can also view the cookies with the Preferences menu. On the
PC it's a little more difficult. In IE you go to Tools -> Internet Optio
your header line works fine, but where are cookie files written?
i didn't see any cookie file about it in my windows/cookie directory
after it had been created??
thanks
Richard Baskett wrote:
> Here use this cookie that I wrote, it works in every browser, every os.
>
> ---
Here use this cookie that I wrote, it works in every browser, every os.
function NextYear () {
$today = gmdate("l, d-M-");
$today .= gmdate("Y")+1;
$today .= gmdate(" H:i:s")." GMT";
return $today;
}
$on
Saturday, September 08, 2001, 5:40:46 PM, you wrote:
AM> when i submit a form and try to have it post a cookie in the php thing i get
AM> this error message:
AM> Warning: Cannot add header information - headers already sent by (output
AM> started at /usr/local/www/data/vi2dev/root/layout/functio
header("Set-Cookie: cookiemonster=$cookiedata; expires=$expire; path=/;
domain="domain.com", secure);
or go to http://home.netscape.com/newsref/std/cookie_spec.html to view even
more specs on it. I just found this way of setting cookies to always work
compared to the php setcookie command which
thanks!
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > in order to prevent my visitors from seeing more than one popup in less
than
> > 120 second, I added this to my php page(index.php)
> > --
> > setcookie("popup",1,time()+120)
> in order to prevent my visitors from seeing more than one popup in less than
> 120 second, I added this to my php page(index.php)
> --
> setcookie("popup",1,time()+120);
> if ($popup!=1)
>
> echo "http://www.peel.net/frames/PMNforce.js>";
> }
> -
>
> When I reload i
t;
> To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 9:30 AM
> Subject: Re: [PHP] Cookie Not Setting..
>
>
>> Try this:
>>
>> $cookie_name= "wwblCookie";
>> $value
PROTECTED]>
> To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 9:30 AM
> Subject: Re: [PHP] Cookie Not Setting..
>
>
> > Try this:
> >
> > $cookie_name= "wwblCookie";
> > $valu
int setcookie (string name [, string value [, int expire [, string path
[, string domain [, int secure])
expire = time() + 3600*24*30;
Note that 'expire' is the client relative to GMT time. So, if the client
has the local time set to 01/01/1985, your cookie will be born dead ;)
> -Origina
i had this problem a while back. the problem with this is cookies work by
the users time not the servers time. so if the server is in america and my
computer is on japanese time even a cookie set for time()+18000 will be
valid because my computer is actually +50400 for a server in EST. i have
On Sunday 08 April 2001 06:15, you wrote:
> Your cookie is set to expire in the year 2280. You think that's a
> little overkill?
>
>
> And it runs into the UNIX-style Y2K problem which is...um...13 years
> from now? Well anyway...
2038 with a 32bit processor
--
Christian Reiniger
LGDC Webmaste
actually, the offending line is:
$cookie_expire = "$time*3";
it may be set too high if you triple it, but i think what might be
happening is that it's setting $cookie_expire to '986703865*3' which would
be invalid.
if this is the case (i dont think you can multiply inside of quotes), then
t
The problem is that it is too far in the future.
Your cookie is set to expire in the year 2280. You think that's a little
overkill?
And it runs into the UNIX-style Y2K problem which is...um...13 years from
now? Well anyway...
Make your cookie's expire time a little more reasonable. Like 5 year
Correct line:
> setcookie ("user_reg[1]" , "$pass_w", $lifetime, "/",
".mydotcom.com");
Now look at this line:
> setcookie ("user_reg[2]" , "$full_name", $lifetime, ".mydotcom.com");
Don't you just hate it when you forget a "/"? ;)
--
Plutarck
Should be working on something...
...bu
Ah yes, the infamous IE cookie problem - look at the expire time - I be it
destroys the cookie as soon as it gets it because the expire time is either on
or before the time the cookie was sent.
--Joe
On Wed, Mar 28, 2001 at 07:16:52PM +0800, Floyd Piedad wrote:
> My program works really well wit
Thanks everyone for all the responses.
I think I'll look into sessions in the future. Meanwhile I'll have to see
what others come up with.
Thanks,
Martin S.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
I have to agree Nuno, sessions are alot easier/simpler.
--
Chris Lee
[EMAIL PROTECTED]
"Nuno Silva" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
short:
try removing the third parameter to setcookie and if the errors go away
you know it's a co
Hello,
short:
try removing the third parameter to setcookie and if the errors go away
you know it's a cookie problem :)
long:
you're setting auth based in the (server's) time + 600sec. If the client
(or even the server) has a clock skew... well bad luck :)
removing the third parameter mak
Yes it can :
here's what I once was doing to assign a user with a cookie containing a
Session ID:
$uniqid = md5 (uniqid (rand()));
if(!isset($sid)) {
$time = time();
setcookie ("sid", $uniqid, $time*3);
}
time()+time() makes it really, really LONG ... (62 years?), of course i
Jeff Oien wrote:
>
> Could you give me some URLs for tutorials related
> to cookies and good reference material?
www.cookiecentral.com/faq/ has some good general info
rfc2109 - more technical but useful
http://www.cis.ohio-state.edu/htbin/rfc/rfc2109.html
>
> One question I have is can a cook
Addressed to: <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from <[EMAIL PROTECTED]> Sat, 24 Feb 2001 16:42:09 -0600
>
> Could you give me some URLs for tutorials related
> to cookies and good reference material?
Not directly, but there are a number of tutorial links at:
> Before redirecting it will also store a cookie in the
> browser named camefrom.
>
> SO then On the login.php page a user enters username
> and pasword and Submits.. if user is found then It has
> to get the Cookie value like this:
>
> $goto = $HTTP_COOKIE_VARS['camefrom'];
>
> header ("Location:
"Eugene Yi (InfoSpace Inc)" wrote:
>
> Thank you for your feedback! I tried it but it didn't make a difference. I
> printed the var right after the set and it returns null.
>
> setcookie("cbcookie1",$domain,0,"/","mydomain.com");
> $domain = $HTTP_COOKIE_VARS["cbcookie1
-
> From: Aaron D. Turner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 2:42 PM
> To: Eugene Yi (InfoSpace Inc)
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Cookie with Netscape
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> That's be
$domain)";
>
> > -Original Message-
> > From: Aaron D. Turner [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 29, 2001 2:29 PM
> > To: Eugene Yi (InfoSpace Inc)
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Cookie with Netscape
> >
bcookie1"];
echo "domain($domain)";
> -Original Message-
> From: Aaron D. Turner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 2:29 PM
> To: Eugene Yi (InfoSpace Inc)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Cookie with Netscape
>
>
> -
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote:
> I set up a cookie using the following command and it works fine under IE but
> not in Netscape. Am I doing something wrong?
>
> setcookie("mycookie[1]",$domain,"","/","mydomain.com");
Should
" <[EMAIL PROTECTED]>
To: "April" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 4:07 PM
Subject: Re: [PHP] Cookie semi-security.
> Enable track_vars in php's config and use
> $PHP_COOKIE_VARS['
PROTECTED]
The Turing Studio, Inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522
> From: [EMAIL PROTECTED] ("Toby Butzon")
> Newsgroups: php.general
> Date: 24 Jan 2001 14:10:40 -0800
>
Enable track_vars in php's config and use
$PHP_COOKIE_VARS['cookie_id'] to get the value of the
cookie.
--Toby
- Original Message -
From: "April" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 5:06 PM
Subject: [PHP] Cookie semi-security.
> S
> scenario: im browsing a file in lets call directory 'test'.
> this file is including a file in the parent directory. this included
> file is setting a cookie.
The point here is that the file is being *included*, therefore the
cookie will only be local to that "test" directory, regardless of
w
> SetCookie("cpvin","$vin","time()+1500");
SetCookie("cpvin",$vin,time()+1500);
Note though that such short expiry times make you very prone to people
having their clocks set wrong. It is a better idea to embed your server's
timestamp in the value of the cookie and when you get the cookie back
> I left the php list a few years ago when I lost the clients who wanted
> (could afford) php scripts (I'm still using 2.12b..lol). Several
> scripts are still running well after all these years.
You probably should consider upgrading...
> Now, I'm building an online programming resume for myse
101 - 187 of 187 matches
Mail list logo